Document.adddatatodocument(); Document.adddatatoselection() - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

Example
The following example sets the accessibility name of the document to
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
A string that specifies the name of the data to add.
name
A string that defines the type of data to add. The valid values for
type
"integerArray"
the value to add. Valid types depend on the
data
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.removeDataFromDocument()
Example
The following example adds an integer value of
fl.getDocumentDOM().addDataToDocument("myData", "integer", 12);
The following example returns the value of the data named
the Output panel:
fl.trace(fl.getDocumentDOM().getDataFromDocument("myData"));

document.addDataToSelection()

Availability
Flash MX 2004.
Usage
document.addDataToSelection( name, type, data )
,
,
"double"
"doubleArray"
document.getDataFromDocument()
,
, and
"string"
parameter.
type
.
to the current document:
12
"myData"
"Main Movie"
are
type
"integer"
.
"byteArray"
and
and displays the result in
Document object
:
,
65

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents