0 Replies Latest reply on May 1, 2008 7:46 AM by ZaBlanc

    What are the options to SWF modules if we can't load from app-storage:?

      So, from what I read, you can't load a SWF from the app-storage: sandbox and expect it to do much of anything, correct? I am loading in SWF symbols, and they appear in my app, and I can call code in them, but I can't handle a simple mouse over with them..

      So, what are my options?

      We can't write in app:...so, how can an AIR developer handle dynamic module content? I don't see any workaround to this?


      loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
      loader.load(new URLRequest("app-storage:/dynamic/items.swf"));

      private function onComplete(event:Event):void {
      var itemClass:Class = (event.target as LoaderInfo).applicationDomain.getDefinition("Apple") as Class
      myApple = hoster.addChild(new itemClass()) as MovieClip;

      myApple.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);

      private function onMouseDown(event:MouseEvent):void {
      trace("THIS NEVER HAPPENS!");