Extending Flash |
|
|
|
| Objects > flash object (fl) > fl.findDocumentDOM() | |||
Flash CS3 Professional.
fl.findDocumentDOM(id)
id An integer that represents a unique identifier for a document.
A Document object, or null if no document exists with the specified id.
Method; lets you target a specific file by using its unique identifier (instead of its index value, for example). Use this method in conjunction with document.id.
The following example illustrates reading a document's ID and then using it to target that document:
var originalDocID = fl.getDocumentDOM().id; // other code here, maybe working in different files var targetDoc = fl.findDocumentDOM(originalDocID); // Set the height of the Stage in the original document to 400 pixels. targetDoc.height = 400;
|
|
|
|