Adobe Integrated Runtime (AIR) for JavaScript Developers Pocket Reference

(nextflipdebug5) #1
Accessing AIR APIs from JavaScript | 61

Using this technique allows you to leverage third party
ActionScript APIs from within AIR applications via
JavaScript.


TIP
Most ActionScript 3 libraries are distributed as zip-based
SWC files. In order to use the libraries within JavaScript,
change the extension of the library from SWC to ZIP, un-
zip them using a zip program, and then remove the li-
brary’s SWF file contained within the SWC.
You can then include the SWF within your application in
the same manner as demonstrated earlier.

At this point, you should have a good understanding of the
HTML and JavaScript environments within the Adobe Inte-
grated Runtime, as well as how to leverage AIR, Flash Player
and third-party ActionScript 3 APIs directly from JavaScript.
The rest of the book will use this knowledge to show how to
accomplish specific tasks from HTML and JavaScript appli-
cations running within Adobe AIR.

Free download pdf