Flash CS3 Documentation |
|||
| Extending Flash > Introduction > The Flash Document Object Model | |||
The Flash Document Object Model (DOM) for the Flash JavaScript API consists of a set of top-level functions (see Top-Level Functions and Methods) and two top-level objects--the FLfile object and the flash object (fl). Each object is guaranteed to be available to a script because it always exists when the Flash authoring environment is open. For more information, see FLfile object and flash object (fl).
When referring to the flash object, you can use flash or fl. For example, to close all open FLA files, you can use either of the following statements:
flash.closeAll(); fl.closeAll();
The flash object contains the following child objects:
|
Object |
How to access |
|---|---|
|
Use fl.actionsPanel to access the actionsPanel object. This object corresponds to the Actions panel in the Flash authoring environment. |
|
|
Use fl.compilerErrors to access the compilerErrors object. This object corresponds to the Compiler Errors panel in the Flash authoring environment. |
|
|
Use fl.componentsPanel to access the componentsPanel object. This object corresponds to the Components panel in the Flash authoring environment. |
|
|
Use fl.documents to retrieve an array of all the open documents; use |
|
|
Use fl.drawingLayer to access the drawingLayer object. |
|
|
Use fl.effects to retrieve an array of effect descriptors that corresponds to the effects registered when Flash starts; use |
|
|
Use fl.Math to access the Math object. |
|
|
Use fl.outputPanel to access the outputPanel object. This object corresponds to the Output panel in the Flash authoring environment. |
|
|
Use fl.getProject() to return a Project object for the currently open project. |
|
|
Use fl.tools to access an array of Tools objects. |
|
|
Use fl.xmlui to access an XML User Interface (XMLUI) object. The XMLUI object provides the ability to get and set properties of an XMLUI dialog box. |
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00003803.html