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:
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.
if the scene is duplicated successfully;
true
otherwise.
false
Document object
85
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?