Document object
85
Returns
An integer that is the index of the new profile in the profile list. Returns -1 if the profile cannot
be duplicated.
Description
Method; duplicates the currently active profile and gives the duplicate version focus.
Example
The following example duplicates the currently active profile and displays the index of the new
profile in the Output panel:
fl.trace(fl.getDocumentDOM().duplicatePublishProfile("dup profile"));
document.duplicateScene()
Availability
Flash MX 2004.
Usage
document.duplicateScene()
Parameters
None.
Returns
A Boolean value:
true
if the scene is duplicated successfully;
false
otherwise.
Description
Method; makes a copy of the currently selected scene, giving the new scene a unique name and
making it the current scene.
Example
The following example duplicates the second scene in the current document:
fl.getDocumentDOM().editScene(1); //set the middle scene to current scene
var success = fl.getDocumentDOM().duplicateScene();
document.duplicateSelection()
Availability
Flash MX 2004.
Usage
document.duplicateSelection()
Parameters
None.
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 ...