Document object
65
Example
The following example sets the accessibility name of the document to
"Main Movie"
:
fl.getDocumentDOM().accName = "Main Movie";
The following example gets the accessibility name of the document:
fl.trace(fl.getDocumentDOM().accName);
document.addDataToDocument()
Availability
Flash MX 2004.
Usage
document.addDataToDocument(
name, type, data
)
Parameters
name
A string that specifies the name of the data to add.
type
A string that defines the type of data to add. The valid values for
type
are
"integer"
,
"integerArray"
,
"double"
,
"doubleArray"
,
"string"
, and
"byteArray"
.
data
the value to add. Valid types depend on the
type
parameter.
Returns
Nothing.
Description
Method; stores specified data with a document. Data is written to the FLA file and is available to
JavaScript when the file reopens. See
document.getDataFromDocument()
and
document.removeDataFromDocument()
.
Example
The following example adds an integer value of
12
to the current document:
fl.getDocumentDOM().addDataToDocument("myData", "integer", 12);
The following example returns the value of the data named
"myData"
and displays the result in
the Output panel:
fl.trace(fl.getDocumentDOM().getDataFromDocument("myData"));
document.addDataToSelection()
Availability
Flash MX 2004.
Usage
document.addDataToSelection(
name, type, data
)
Содержание FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Страница 1: ...Flash JavaScript Dictionary ...
Страница 16: ...16 Contents ...
Страница 40: ...40 Chapter 2 Top level functions ...
Страница 368: ...368 Chapter 3 Objects ...
Страница 386: ...386 Chapter 4 C Level Extensibility ...