Skip navigation
RDSystem
Currently Being Moderated

How to exit application from AIR

Feb 3, 2012 7:29 PM

Tags: #air #for #tv

Hi all,

I have created air application for TV. When user press on EXIT key of remote control, the application will be closed, this is ok with me.

 

But in the application, if user press on RETURN key, app will show the panel to confirm. If user choose 'no', it will back to app. If user choose 'yes', we must close application from flash.

 

Any one please let me know what actionscript function we should call?

 

Thank you very much.

RD System

 
Replies
  • Currently Being Moderated
    Dec 5, 2012 11:27 AM   in reply to RDSystem

    No. of ways to Exit in Flex:

           1. NativeApplication.nativeApplication.exit();
    2. Application.application.exit();
    3. application.close();
    4. exit();

     
    |
    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