|
Flash CS4 Resources |
fl.findDocumentDOM()DescriptionMethod; 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. ExampleThe 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; |