Adobe Integrated Runtime (AIR) for JavaScript Developers Pocket Reference

(nextflipdebug5) #1
AIR Implementation of Functionality | 47

cookies set within Firefox cannot be shared with AIR
applications.


TIP
In addition to cookies, AIR applications have a number of
other APIs that can be used for persistent data, including
the file API, as well as the embedded database API.

Windowing


Windows


You can create new windows via JavaScript just as you can
within the browser.


myWindow = window.open("Window.html", "myWindow",
"height=400,width=400");

However, the runtime property which provides access to AIR
and Flash Player APIs is not automatically available within the
new window. In order to make it available, you must explic-
itly place it within the scope of the new window like so:


window.runtime = window.opener.runtime;

TIP
Full support of native windows is not available within the
Beta. Only APIs available from JavaScript have been
implemented.

Dialogs


HTML dialogs are also supported within AIR applications,
although not all have been implemented within the Beta.


Dialog Supported in Beta
alert yes
confirm yes
prompt no
Free download pdf