Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 716 Bytes

File metadata and controls

30 lines (17 loc) · 716 Bytes

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);