Extending Flash |
|
|
|
| Objects > ScreenOutline object > screenOutline.screens | |||
Flash MX 2004.
screenOutline.screens
Read-only property; the array of top-level Screen objects contained in the document (see Screen object).
The following example stores the array of Screen objects in the myArray variable and then displays their names in the Output panel:
var myArray = new Array();
if(fl.getDocumentDOM().allowScreens) {
for(var i in fl.getDocumentDOM().screenOutline.screens) {
myArray.push(" "+fl.getDocumentDOM().screenOutline.screens[i].name);
}
fl.trace(2"The screens array contains objects whose names are: "+myArray+". ");
}
|
|
|
|