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.

<strong>ACTIONSCRIPT</strong> 3.0 DEVELOPER’S GUIDE<br />

AIR application invocation and termination<br />

Flex example<br />

<br />

<br />

<br />

0){<br />

logEv<strong>en</strong>t("Argum<strong>en</strong>ts: " + invokeEv<strong>en</strong>t.argum<strong>en</strong>ts.toString());<br />

} else {<br />

logEv<strong>en</strong>t("--no argum<strong>en</strong>ts--");<br />

}<br />

public function logEv<strong>en</strong>t(<strong>en</strong>try:String):void {<br />

log.text += <strong>en</strong>try + "\n";<br />

trace(<strong>en</strong>try);<br />

}<br />

]]><br />

<br />

<br />

<br />

Invoking an AIR application on user login<br />

Adobe AIR 1.0 and later<br />

An AIR application can be set to launch automatically wh<strong>en</strong> the curr<strong>en</strong>t user logs in by setting the NativeApplication<br />

startAtLogin property to true. Once set, the application automatically starts wh<strong>en</strong>ever the user logs in. It continues<br />

to launch at login until the setting is changed to false, the user manually changes the setting through the operating<br />

system, or the application is uninstalled. Launching at login is a run-time setting. The setting only applies to the<br />

curr<strong>en</strong>t user. The application must be installed to successfully set the startAtLogin property to true. An error is<br />

thrown if the property is set wh<strong>en</strong> an application is not installed (such as wh<strong>en</strong> it is launched with ADL).<br />

Note: The application does not launch wh<strong>en</strong> the computer system starts. It launches wh<strong>en</strong> the user logs in.<br />

Last updated 6/6/2012<br />

881

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

Saved successfully!

Ooh no, something went wrong!