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 />

Working with AIR native windows<br />

Window settings Mac OS X Microsoft Windows Linux *<br />

Type: Any<br />

SystemChrome: none<br />

Transpar<strong>en</strong>t: false<br />

Type: Any<br />

SystemChrome: none<br />

Transpar<strong>en</strong>t: true<br />

mxWindowedApplication or<br />

mx:Window<br />

Type: Any<br />

SystemChrome: none<br />

Transpar<strong>en</strong>t: true<br />

* Ubuntu with Compiz window manager<br />

Note: The following system chrome elem<strong>en</strong>ts are not supported by AIR: the Mac OS X Toolbar, the Mac OS X Proxy Icon,<br />

Windows title bar icons, and alternate system chrome.<br />

Creating windows<br />

Adobe AIR 1.0 and later<br />

AIR automatically creates the first window for an application, but you can create any additional windows you need.<br />

To create a native window, use the NativeWindow constructor method.<br />

To create an HTML window, either use the HTMLLoader createRootWindow() method or, from an HTML<br />

docum<strong>en</strong>t, call the JavaScript window.op<strong>en</strong>() method. The window created is a NativeWindow object whose display<br />

list contains an HTMLLoader object. The HTMLLoader object interprets and displays the HTML and JavaScript<br />

cont<strong>en</strong>t for the window. You can access the properties of the underlying NativeWindow object from JavaScript using<br />

the window.nativeWindow property. (This property is only accessible to code running in the AIR application<br />

sandbox.)<br />

Last updated 6/6/2012<br />

896

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

Saved successfully!

Ooh no, something went wrong!