Document.addfilter(), Document.additem() – Adobe Extending Flash Professional CS4 User Manual
Page 87
65
EXTENDING FLASH CS4 PROFESSIONAL
Document 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 Filters 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 Filters list.
Example
The following example applies a glow filter to the selected object(s):
fl.getDocumentDOM().addFilter("glowFilter");
See also
,
,
document.addItem()
Availability
Flash MX 2004.
Usage
document.addItem(position, item)
Parameters
position
A point that specifies the x and y coordinates of the location at which to add the item. It uses the center of
a symbol or the upper left corner of a bitmap or video.