0 Replies Latest reply on Mar 8, 2012 5:20 AM by Mithrodin K

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

    Mithrodin K

      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?