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

About the HTML <strong>en</strong>vironm<strong>en</strong>t<br />

HTML cont<strong>en</strong>t in AIR does not display SWF or PDF cont<strong>en</strong>t if alpha, scaling, or transpar<strong>en</strong>cy settings are applied. For<br />

more information, see “Considerations wh<strong>en</strong> loading SWF or PDF cont<strong>en</strong>t in an HTML page” on page 1001 and<br />

“Window transpar<strong>en</strong>cy” on page 893.<br />

More Help topics<br />

Webkit DOM Refer<strong>en</strong>ce<br />

Safari HTML Refer<strong>en</strong>ce<br />

Safari CSS Refer<strong>en</strong>ce<br />

www.webkit.org<br />

Overview of the HTML <strong>en</strong>vironm<strong>en</strong>t<br />

Adobe AIR 1.0 and later<br />

Adobe AIR provides a complete browser-like JavaScript <strong>en</strong>vironm<strong>en</strong>t with an HTML r<strong>en</strong>derer, docum<strong>en</strong>t object<br />

model, and JavaScript interpreter. The JavaScript <strong>en</strong>vironm<strong>en</strong>t is repres<strong>en</strong>ted by the AIR HTMLLoader class. In<br />

HTML windows, an HTMLLoader object contains all HTML cont<strong>en</strong>t, and is, in turn, contained within a<br />

NativeWindow object. In SWF cont<strong>en</strong>t, the HTMLLoader class, which ext<strong>en</strong>ds the Sprite class, can be added to the<br />

display list of a stage like any other display object. The Adobe® ActionScript® 3.0 properties of the class are described<br />

in “Scripting the AIR HTML Container” on page 1000 and also in the ActionScript 3.0 Refer<strong>en</strong>ce for the Adobe Flash<br />

Platform. In the Flex framework, the AIR HTMLLoader class is wrapped in a mx:HTML compon<strong>en</strong>t. The mx:HTML<br />

compon<strong>en</strong>t ext<strong>en</strong>ds the UICompon<strong>en</strong>t class, so it can be used directly with other Flex containers. The JavaScript<br />

<strong>en</strong>vironm<strong>en</strong>t within the mx:HTML compon<strong>en</strong>t is otherwise id<strong>en</strong>tical.<br />

About the JavaScript <strong>en</strong>vironm<strong>en</strong>t and its relationship to the AIR host<br />

Adobe AIR 1.0 and later<br />

The following diagram illustrates the relationship betwe<strong>en</strong> the JavaScript <strong>en</strong>vironm<strong>en</strong>t and the AIR run-time<br />

<strong>en</strong>vironm<strong>en</strong>t. Although only a single native window is shown, an AIR application can contain multiple windows. (And<br />

a single window can contain multiple HTMLLoader objects.)<br />

Last updated 6/6/2012<br />

960

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

Saved successfully!

Ooh no, something went wrong!