1 Reply Latest reply on May 17, 2011 7:38 AM by Zeponiter

    Error #2124: Loaded file is an unknown type when loading any SWF file

    JabbyPandaUA Level 3

      Hi all,

       

      We are using IBM WebSphere Application Server (WAS) 6.1 along with Apache web-server for hosting our Flash RIA application.

       

      Our Flash RIA application used to be single monolitic SWF file and it worked OK for us.

       

      But now there is a new need to load dynamically external SWF files into our main SWF file, but every time we try to load SWF file on this configuration IOErrorEvent is thrown with error text  "Error #2124: Loaded file is an unknown type"

       

      Simplest MXML application fails to load SWF file with this error, although external images are loading fine.

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                     xmlns:s="library://ns.adobe.com/flex/spark"
                     xmlns:mx="library://ns.adobe.com/flex/mx">
          <fx:Script>
              <![CDATA[                       
                  protected function swfloader1_ioErrorHandler(event:IOErrorEvent):void {               
                      mx.controls.Alert.show("SWF load failed " + event.text);
                  }
              ]]>
          </fx:Script>
          <mx:SWFLoader source="test.swf"             
                        ioError="swfloader1_ioErrorHandler(event)"/>           
      </s:Application>

       

      We already tried to specify the MIME type for file extension ".swf" at IBM WebSphere 6.1 admin console, tried 2 values "application/x-shockwave-flash" and "application/swf" - did not solve the problem.