MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 100

Extending flash
Table of Contents

Advertisement

document.duplicatePublishProfile()
Availability
Flash MX 2004.
Usage
document.duplicatePublishProfile( [profileName ] )
Parameters
A string that specifies the unique name of the duplicated profile. If you do
profileName
not specify a name, the method uses the default name. This parameter is optional.
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:
if the scene is duplicated successfully;
otherwise.
true
false
Description
Method; makes a copy of the currently selected scene, giving the new scene a unique name
and making it the current scene.
100
Objects

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents