Extending Flash |
|
|
|
| Objects > flash object (fl) > fl.setActiveWindow() | |||
Flash MX 2004.
fl.setActiveWindow(document[,bActivateFrame])
document A Document object that specifies the document to select as the active window.
bActivateFrame An optional parameter that is ignored by Flash and Fireworks and is present only for compatibility with Dreamweaver.
Nothing.
Method; sets the active window to be the specified document. This method is also supported by Dreamweaver and Fireworks. If the document has multiple views (created by Edit In New Window), the first view is selected.
The following example shows two ways to save a specified document:
fl.setActiveWindow(fl.documents[0]);
var theIndex = fl.findDocumentIndex("myFile.fla");
fl.setActiveWindow(fl.documents[theIndex]);
|
|
|
|