Extending Flash |
|
|
|
| Objects > Screen object > screen.hidden | |||
Flash MX 2004.
screen.hidden
Property; a Boolean value that specifies whether the screen is visible. A screen with the hidden property set to true is not visible in any other screen.
The following example checks to see if the first screen in the outline is hidden and changes the visibility of the screen accordingly. Then, a message in the Output panel shows what the visibility of the screen was before the change:
if (fl.getDocumentDOM().screenOutline.screens[0].hidden) {
fl.getDocumentDOM().screenOutline.setScreenProperty("hidden", false);
fl.trace(fl.getDocumentDOM().screenOutline.screens[0].name+" had its 'hidden' property set to 'false'");
}
else {
fl.getDocumentDOM().screenOutline.setScreenProperty("hidden", true);
fl.trace(fl.getDocumentDOM().screenOutline.screens[0].name+" had its 'hidden' property set to 'true'");
}
|
|
|
|