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

Scripting the AIR HTML Container<br />

}<br />

}<br />

}<br />

override public function updateStatus(status:String):void<br />

{<br />

statusField.text = status;<br />

trace(status);<br />

}<br />

override public function updateTitle(title:String):void<br />

{<br />

htmlLoader.stage.nativeWindow.title = title + "- Example Application";<br />

}<br />

override public function windowBlur():void<br />

{<br />

htmlLoader.alpha = 0.5;<br />

}<br />

override public function windowFocus():void<br />

{<br />

htmlLoader.alpha = 1;<br />

}<br />

3 Create another ActionScript file named CustomHostExample.as to contain the docum<strong>en</strong>t class for the application.<br />

This class creates an HTMLLoader object and sets its host property to an instance of the CustomHost class defined<br />

in the previous step:<br />

Last updated 6/6/2012<br />

1010

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

Saved successfully!

Ooh no, something went wrong!