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();
The runtime object
in AIR in the application sandbox. It lets you access runtime classes from
provides access to the flash package. In turn, the flash.filesystem property
of the runtime 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.
Note: The runtime 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 runtime property of the parent.
Because the package structure of the runtime
code strings to access each class (as in window.runtime.flash.desktop.NativeApplication),
the AIR SDK includes an AIRAliases.js file that lets you access
runtime classes much more easily (for instance, by simply typing air.NativeApplication).
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 Language 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.