0 Replies Latest reply on Jul 13, 2011 3:28 PM by mj93

    Loading SWF FLash Build 4.5 Mobile app

    mj93

      Hi Everyone,

       

      Please Help!

       

      I have a problem that I am trying to solve. I need to load an external SWF into my mobile app using Flash Builder 4.5. I have search and search and can not find the answer. I have tried with no luck.

       

      import mx.controls.SWFLoader;

                                                     

      private function loadLocalSwf(fileName:String):void

      {  

                      var myloader:SWFLoader = new SWFLoader();

                      myloader.height = 400;

                      myloader.width = 500;

       

                      addElement(myloader);

                      myloader.source = "assets/test_2.swf";

      }

       

       

      Thanks in advance

      Mike