User Guide
flash object (fl) 239
fl.getDocumentDOM()
Availability
Flash MX 2004.
Usage
fl.getDocumentDOM()
Parameters
None.
Returns
A Document object, or null if no documents are open.
Description
Method; retrieves the DOM (Document object) of the currently active document (FLA file).
If one or more documents are open but a document does not currently have focus (for
example, if a JSFL file has focus), retrieves the DOM of the most recently active document.
Example
The following example displays the name of the current or most recently active document in
the Output panel:
var currentDoc = fl.getDocumentDOM();
fl.trace(currentDoc.name);
fl.getProject()
Availability
Flash 8.
Usage
fl.getProject()
Parameters
None.
Returns
A Project object that represents the currently open project. If no project is currently open,
returns
undefined.