Document object
99
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.
Example
The following example checks the document for persistent data with the name
"myData":
var hasData = fl.getDocumentDOM().documentHasData("myData");
See also
document.addDataToDocument()
,
document.getDataFromDocument()
,
document.removeDataFromDocument()
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...