5 Replies Latest reply on May 18, 2011 10:39 AM by Flex harUI

    Error: Unable to load style(SWF is not a loadable module):myFile.swf

    Aur_0r Level 1

      I use run-time style sheet and load a .swf file in my application like this :

       

      styleManager.loadStyleDeclarations("http://myUrl/myFile.swf",true,false);

       

      If I launch the application with FlashBuilder 4 I get the following error :

      Error: Unable to load style(SWF is not a loadable module):myFile.swf

       

      If I launch the application from an Apache server (in localhost) I have no error and my style is applyed to the application.

       

      Does FlashBuilder 4 forbid the launch application to use external .swf ?

       

      Is there any suggestion ?