Skip navigation
BazamShah
Currently Being Moderated

swf for android

Mar 29, 2012 2:49 AM

hi, im zatul.

 

my exit bttn in swf file using swf player for android doesnt work using fscommand. How?

 
Replies
  • Currently Being Moderated
    Mar 29, 2012 7:14 AM   in reply to BazamShah

    Since you're in AIR, I think this should work:

     

    import flash.desktop.NativeApplication;

     

    NativeApplication.nativeApplication.exit();

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 29, 2012 12:10 PM   in reply to dmeN

    The above is true and you can also set the option that the app exits on deactivate as well (as in it exits if the user presses a home button).

     

    To explain, fscommand is something that is used primarilly in Projector EXEs and when embedded in websites to talk to the containing host (the browser, or more specifically, JavaScript in a browser). When you make an app for a mobile device you are no longer in a browser nor are you in a projector. You're in AIR-land if you're using CS5.5 or native land if using CS5 (iOS only). Thus you must use the proper code for your environment.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points