MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 385

Extending flash
Table of Contents

Advertisement

Example
The following example stores the array of Screen objects in the
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("The screens array contains objects whose names are:
"+myArray+". ");
}
screenOutline.setCurrentScreen()
Availability
Flash MX 2004.
Usage
screenOutline.setCurrentScreen( name )
Parameters
A string that specifies the name screen which should become the currently selected
name
screen. If the screen is a child of another screen, you do not need to indicate a path or
hierarchy.
Returns
Nothing.
Description
Method; sets the current selection in the screen outline to the specified screen.
Example
The following example sets the current screen to the screen named ChildOfSlide_1:
fl.getDocumentDOM().screenOutline.setCurrentScreen("ChildOfSlide_1");
variable and then
myArray
ScreenOutline object
385

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents