Screen object
253
screen.parameters
Availability
Flash MX 2004.
Usage
screen.parameters
Description
Read-only property; an array of ActionScript properties that are accessible from the screen
Property inspector.
Example
The following example stores the parameters for the second screen in the outline to the
parms
variable and then assigns the
"some value"
value to the first property:
var parms = fl.getDocumentDOM().screenOutline.screens[1].parameters;
parms[0].value = "some value";
screen.parentScreen
Availability
Flash MX 2004.
Usage
screen.parentScreen
Description
Read-only property; an object that represents the parent screen. If
parentScreen
is
null
, the
screen is a top-level screen.
Example
The following example stores the values for the
childScreens
and
parentScreen
properties in
variables and then shows those values and their parent/child relationship in the Output panel:
if(fl.getDocumentDOM().allowScreens) {
var myCurrent =
fl.getDocumentDOM().screenOutline.rootScreen.childScreens[1].name;
var myParent =
fl.getDocumentDOM().screenOutline.rootScreen.childScreens[1].parentScreen.n
ame;
fl.trace(" The parent screen to "+my" is "+m". ");
}
Содержание FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Страница 1: ...Flash JavaScript Dictionary ...
Страница 16: ...16 Contents ...
Страница 40: ...40 Chapter 2 Top level functions ...
Страница 368: ...368 Chapter 3 Objects ...
Страница 386: ...386 Chapter 4 C Level Extensibility ...