13.08.2012 Views

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 50: AIR application invocation<br />

and termination<br />

Adobe AIR 1.0 and later<br />

This section discusses the ways in which an installed Adobe® AIR® application can be invoked, as well as options and<br />

considerations for closing a running application.<br />

Note: The NativeApplication, InvokeEv<strong>en</strong>t, and BrowserInvokeEv<strong>en</strong>t objects are only available to SWF cont<strong>en</strong>t running<br />

in the AIR application sandbox. SWF cont<strong>en</strong>t running in the Flash Player runtime, within the browser or the standalone<br />

player (projector), or in an AIR application outside the application sandbox, cannot access these classes.<br />

For a quick explanation and code examples of invoking and terminating AIR applications, see the following quick start<br />

articles on the Adobe Developer Connection:<br />

Startup Options<br />

More Help topics<br />

flash.desktop.NativeApplication<br />

flash.ev<strong>en</strong>ts.InvokeEv<strong>en</strong>t<br />

flash.ev<strong>en</strong>ts.BrowserInvokeEv<strong>en</strong>t<br />

Application invocation<br />

Adobe AIR 1.0 and later<br />

An AIR application is invoked wh<strong>en</strong> the user (or the operating system):<br />

Launches the application from the desktop shell.<br />

Uses the application as a command on a command line shell.<br />

Op<strong>en</strong>s a type of file for which the application is the default op<strong>en</strong>ing application.<br />

(Mac OS X) clicks the application icon in the dock taskbar (whether or not the application is curr<strong>en</strong>tly running).<br />

Chooses to launch the application from the installer (either at the <strong>en</strong>d of a new installation process, or after doubleclicking<br />

the AIR file for an already installed application).<br />

Begins an update of an AIR application wh<strong>en</strong> the installed version has signaled that it is handling application<br />

updates itself (by including a true declaration in the application<br />

descriptor file).<br />

Visits a web page hosting a Flash badge or application that calls com.adobe.air.AIR launchApplication()<br />

method specifying the id<strong>en</strong>tifying information for the AIR application. (The application descriptor must also<br />

include a true declaration for browser invocation to<br />

succeed.)<br />

Last updated 6/6/2012<br />

877

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!