84
Chapter 3: Objects
Returns
Nothing.
Description
Method; performs a distribute-to-layers operation on the current selection—equivalent to
selecting Distribute to Layers. This method displays an error if there is no selection.
Example
The following example distributes the current selection to layers:
fl.getDocumentDOM().distributeToLayers();
document.documentHasData()
Availability
Flash MX 2004.
Usage
document.documentHasData(
name
)
Parameters
name
A string that specifies the name of the data to check.
Returns
A Boolean value:
true
if the document has persistent data;
false
otherwise.
Description
Method; checks the document for persistent data with the specified name. See
document.addDataToDocument()
,
document.getDataFromDocument()
, and
document.removeDataFromDocument()
.
Example
The following example checks the document for persistent data with the name
"myData":
var hasData = fl.getDocumentDOM().documentHasData("myData");
document.duplicatePublishProfile()
Availability
Flash MX 2004.
Usage
document.duplicatePublishProfile( [
profileName
] )
Parameters
profileName
A string that specifies the unique name of the duplicated profile. If you do not
specify a name, the method uses the default name. This parameter is optional.
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 ...