Screenoutline.duplicatescreen(); Screenoutline.getselectedscreens() - 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

screenOutline.duplicateScreen()

Availability
Flash MX 2004.
Usage
screenOutline.duplicateScreen( [screenName] )
Parameters
A string value that specifies the screen name to duplicate. If you don't pass a value
screenName
for
, the currently selected screen(s) are duplicated. This parameter is optional.
screenName
Returns
A Boolean value:
Description
Method; duplicates the currently selected screen(s) or a specified screen. The duplicate screens are
given a default name by appending _copy to the original name, such as Screen_copy,
Screen_copy2, and so on. If you duplicate multiple screens, the duplicates are placed directly
below the selected screen that is lowest in the screen outline hierarchy.
Example
The following example duplicates a screen named apple:
fl.getDocumentDOM().screenOutline.duplicateScreen("apple");

screenOutline.getSelectedScreens()

Availability
Flash MX 2004.
Usage
screenOutline.getSelectedScreens()
Parameters
None.
Returns
An array of selected Screen objects (see
Description
Method; returns an array of Screen objects that are currently selected in the screen outline.
Example
The following example stores the selected Screen objects in the
screen names in the Output panel:
var myArray = fl.getDocumentDOM().screenOutline.getSelectedScreens();
for (var i in myArray) {
if the screen is successfully duplicated;
true
Screen
object).
otherwise.
false
variable and displays the
myArray
ScreenOutline object
259

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents