Extending Flash |
|
|
|
| Objects > Screen object > screen.name | |||
Flash MX 2004.
screen.name
Read-only property; a string that represents the name of the screen.
The following example checks to see if the current document allows screens (because it is a slide or form document). Then, it assigns the name value of the first child screen in the array to the myName variable and opens the Output panel to show the name of the screen:
var myChildren = new Array();
if(fl.getDocumentDOM().allowScreens) {
var myName = fl.getDocumentDOM().screenOutline.rootScreen.childScreens[0].name;
fl.trace("The name of the screen is "+myName+". ");
}
|
|
|
|