Extending Flash |
|
|
|
| Objects > Screen object > screen.childScreens | |||
Flash MX 2004.
screen.childScreens
Read-only property; the array of child screens for this screen. The array is empty if there are no child screens.
The following example checks to see if the current document is a slide or form, and if it is, stores the array of child screens in the myChildren variable and displays their names in the Output panel:
var myChildren = new Array();
if(fl.getDocumentDOM().allowScreens) {
var myParent = fl.getDocumentDOM().screenOutline.rootScreen.name
for (i in fl.getDocumentDOM().screenOutline.rootScreen.childScreens) {
myChildren.push(" "+fl.getDocumentDOM().screenOutline.rootScreen.childScreens[i].name);
}
fl.trace(" The child screens of "+myParent+" are "+myChildren+". ");
}
|
|
|
|