Screen.hidden; Screen.instancename - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

screen.hidden

Availability
Flash MX 2004.
Usage
screen.hidden
Description
Property; a Boolean value that specifies whether the screen is visible. A screen with the
property set to
true
Example
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'");
}

screen.instanceName

Availability
Flash MX 2004.
Usage
screen.instanceName
Description
Read-only property; a string that represents the instance name used to access the object from
ActionScript.
Example
The following example checks to see if the current document allows screens (because it is a slide
or form). Then, it assigns the
myInstanceName
var myChildren = new Array();
if(fl.getDocumentDOM().allowScreens) {
var myInstanceName =
fl.getDocumentDOM().screenOutline.rootScreen.childScreens[0].instanceName;
fl.trace(" The instanceName is "+myInstanceName+". ");
}
is not visible in any other screen.
instanceName
variable and opens the Output panel to show the instance name of the screen:
value of the first child screen in the array to the
hidden
Screen object
251

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents