For example, the AIR file API includes
a File class, contained in the flash.filesystem package. You can
var myFile = new window.runtime.flash.filesystem.File();
in AIR in the application sandbox. It lets you access runtime classes from
property of the
provides access to the flash package. In turn, the
object provides access to the flash.filesystem
package (and this package includes the File class). Packages are
a way of organizing classes used in ActionScript.
property is not automatically
added to the window objects of pages loaded in a frame or iframe.
However, as long as the child document is in the application sandbox,
the child can access the
property of the parent.
Because the package structure of the runtime
code strings to access each class (as in
the AIR SDK includes an AIRAliases.js file that lets you access
runtime classes much more easily (for instance, by simply typing
The AIR API classes are discussed throughout
this guide. Other classes from the Flash Player API, which may be
of interest to HTML developers, are described in the
Adobe AIR API Reference for HTML Developers
ActionScript is the language used in SWF (Flash Player) content.
both based on versions of the ECMAScript language.) All built-in
(in SWF content).
XML, and XMLList classes, which are available in ActionScript.