beautypg.com

Document.addfilter(), Document.additem() – Adobe Extending Flash Professional CS5 User Manual

Page 86

background image

64

EXTENDING FLASH PROFESSIONAL

Document object

Last updated 5/2/2011

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.changeFilterOrder()

,

document.disableFilter()

,

document.enableFilter()

,

document.getFilters()

,

document.removeFilter()

,

document.setBlendMode()

,

document.setFilterProperty()

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.

item

An Item object that specifies the item to add and the library from which to add it (see

Item object

).

Returns
A Boolean value:

true

if successful;

false

otherwise.

This manual is related to the following products: