ScreenOutline object
257
Property summary for the ScreenOutline object
You can use the following properties with the ScreenOutline object:
screenOutline.copyScreenFromFile()
Availability
Flash MX 2004.
Usage
screenOutline.copyScreenFromFile(
fileURI
[,
screenName
] )
Parameters
fileURI
Astring that specifies a filename for the authoring file that contains the screens to
copy into the document, in URI format (for example,
"file:///C:/assets.fla"
).
screenName
The name of the screen to copy. If the
screenName
parameter is present, Flash
copies that screen and its children. If the
screenName
is not specified, Flash copies the whole
document. This parameter is optional.
Returns
Nothing. If the file is not found or is not a valid FLA file, or if the specified screen is not found,
an error is reported and the script is cancelled.
Description
Method; inserts all the screens, or a named screen and its children, from a specified document
under the currently selected screen. If more than one screen is selected, the screen(s) are inserted
under the last selected screen, as its sibling.
Example
The following example copies the “slide1” screen from the myTarget.fla file on the Desktop into
the current document (substitute your user name for
userName
):
fl.getDocumentDOM().screenOutline.copyScreenFromFile("file:///C|/Documents and
Settings/
userName
/Desktop/myTarget.fla", "slide1");
screenOutline.setScreenProperty()
Method; lets the specified property with the specified
value for the selected screens.
screenOutline.setSelectedScreens()
Method; selects the specified screens in the Screen
Outline pane.
Property
Description
screenOutline.currentScreen
Property;
a
Screen object
; the currently selected screen.
screenOutline.rootScreen
Read-only; the first screen in the screen outline.
screenOutline.screens
Read-only ; the array of top level Screen objects
contained in the document (see
Screen object
).
Method
Description
Summary of Contents for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Page 1: ...Flash JavaScript Dictionary ...
Page 16: ...16 Contents ...
Page 40: ...40 Chapter 2 Top level functions ...
Page 368: ...368 Chapter 3 Objects ...