|
|
document.addDataToSelection()
AvailabilityFlash
MX 2004.
Usagedocument.addDataToSelection(name, type, data)
Parameters- name
- A string that specifies the name of the persistent data.
- type
- Defines the type of data. Acceptable values are "integer", "integerArray", "double", "doubleArray", "string",
and "byteArray".
- data
- The value to add. Valid types depend on the type parameter.
DescriptionMethod;
stores specified data with the selected object(s). Data is written
to the FLA file and is available to JavaScript when the file reopens.
Only symbols and bitmaps support persistent data.
ExampleThe
following example adds an integer value of 12 to the selected object:
fl.getDocumentDOM().addDataToSelection("myData", "integer", 12);
|