Flash CS3 Documentation |
|||
| Extending Flash > Objects > ScreenOutline object | |||
Flash MX 2004.
The ScreenOutline object represents the group of screens in a slide or form document. The object is accessed by using fl.getDocumentDOM().screenOutline.
The ScreenOutline object exists only if the document is a slide or form document, so before accessing the property, use document.allowScreens() to verify that a Screens document exists, as shown in the following example:
if(fl.getDocumentDOM().allowScreens) {
var myName = fl.getDocumentDOM().screenOutline.rootScreen.childScreens[0].name;
fl.trace("The name of the screen is " + myName + ". ");
}
You can use the following methods with the ScreenOutline object:
|
Method |
Description |
|---|---|
|
Inserts all the screens, or a named screen and its children, from a specified document under the currently selected screen. |
|
|
Deletes the currently selected screen(s), or a specified screen, and the children of the screen(s). |
|
|
Duplicates the currently selected screen(s) or a specified screen. |
|
|
Returns an array of Screen objects that are currently selected in the screen outline. |
|
|
Inserts a nested screen of a specific type into a particular location in the screen outline. |
|
|
Inserts a new blank screen of a specified type into the document at a specified location. |
|
|
Moves the specified screen in relation to the value of the |
|
|
Changes the screen with a specified name to a new name. |
|
|
Sets the current selection in the screen outline to the specified screen. |
|
|
Sets the specified property with the specified value for the selected screens. |
|
|
Selects the specified screens in the Screen Outline pane. |
You can use the following properties with the ScreenOutline object:
|
Property |
Description |
|---|---|
|
A Screen object; the currently selected screen. |
|
|
Read-only; the first screen in the screen outline. |
|
|
Read-only; the array of top-level Screen objects contained in the document (see Screen object). |
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00004369.html