Quantcast
Channel: Adobe Community : Popular Discussions - Using Flash Builder
Viewing all articles
Browse latest Browse all 70427

Unable to load style(SWF is not a loadable module)

$
0
0

While devoloping an App voor iOS we decided to use several StyleSheets.

 

We are implementing the loading of Stylesheets as:

 

event_dispatcher:IEventDispatcher = this.styleManager.loadStyleDeclarations2("assests/styles/default.swf");

 

 

 

event_dispatcher.addEventListener(StyleEvent.COMPLETE, OnStyleLoaded);

event_dispatcher.addEventListener(StyleEvent.ERROR, OnStyleError);

 

running the app on the desktop simulators work fine.

 

packaging the app with package method fast, and running the app on an iphone4 works fine.

 

packaging the app with package method standaard, and running the app on an iphone4 gives an error:

Unable to load style(SWF is not a loadable module): assets/styles/default.swf.

 

Is there something im missing? Why does it work when packaging as Fast, and not as Standard?


Viewing all articles
Browse latest Browse all 70427