3 Replies Latest reply: May 28, 2013 8:41 AM by fB3 RSS

    swf file in android




      i am developing air app for ANDROID


      i am using swfloader to load swf file


      swf not stopping at the end and it is looping


      the same is working in the android web browser


      any suggesstions



        • 1. Re: swf file in android
          arjunender Community Member

          help please

          • 2. Re: swf file in android
            arjunender Community Member

            any suggestions



            • 3. Re: swf file in android
              fB3 Community Member

              Rather than trying to rely on external swf timeline

              you could create a bridge to communicate with the externally loaded swf from the main application and control it programmatically.


              // set up a variable to communicate with

              public var loadedSWFMainTimeline:MovieClip;


              //add a function to initialize and communicate with the swf

              public function onSWFCompleted(event:Event):void


                   loadedSWFMainTimeline = mySWF.content;


                   //call some function to reset or control something.


                   //or maybe direct it to a frame

                   loadedSWFMainTimeline5.gotoAndStop( 1 );




              <mx:SWFLoader id="mySWF" complete="onSWFCompleted(event);" source="/assets/mySWF.swf" trustContent="true" autoLoad="true"/>



              You can now control fuctionality in the external swf.

              This will work in a browser or compiled app.