0 Replies Latest reply on Jan 21, 2016 11:10 PM by Adeo Suryo

    Back Button Android not working with SWF.

    Adeo Suryo

      I build an android app with Adobe Flash CS6 & AIR for android.

      this app have interactive button to navigate from one frame to another.

      there is one frame with a imported flash animation (swf) and in this

       

       

      frame (called "X" frame) i need to tap on the screen before the BACK

       

       

      button is work, or else it will quit the app.

       

       

      //code back

                  stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);

      function

      onKeyDown(event:KeyboardEvent):void

      {

        switch (event.keyCode)

        {

        case Keyboard.BACK:

        gotoAndStop(5);

        event.preventDefault();

        }

      }

       

       

              }

       

       

       

       

       

       

      this my Back button script, this fuction working on other frame, except

       

       

      in "X" frame.

       

       

      Sorry for my grammar i hope u can understand what i mean.