Flash MX 2004.
fl.getDocumentDOM()
None.
A Document object, or null if no documents are open.
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.
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);