Document object
71
Description
Method; 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.
Example
The following example adds an integer value of 12 to the selected object:
fl.getDocumentDOM().addDataToSelection("myData", "integer", 12);
See also
document.removeDataFromSelection()
document.addFilter()
Availability
Flash 8.
Usage
document.addFilter(
filterName
)
Parameters
filterName
A string specifying the filter to be added to the Filter list and enabled for the
selected object(s). Acceptable values are
"adjustColorFilter", "bevelFilter"
,
"blurFilter"
,
"dropShadowFilter"
,
"glowFilter"
,
"gradientBevelFilter"
, and
"gradientGlowFilter"
.
Returns
Nothing.
Description
Method; applies a filter to the selected objects and places the filter at the end of the Filter list.
Example
The following example applies a glow filter to the selected object(s):
fl.getDocumentDOM().addFilter("glowFilter");
See also
document.changeFilterOrder()
,
document.disableFilter()
,
document.enableFilter()
,
document.getFilters()
,
document.removeFilter()
,
document.setBlendMode()
,
document.setFilterProperty()
Содержание FLASH 8-EXTENDING FLASH
Страница 1: ...Extending Flash...
Страница 38: ...38 Top Level Functions and Methods...
Страница 532: ...532 Objects...
Страница 554: ...554 C Level Extensibility...