Document object
145
Example
The following example enables the To Stage button in the Align panel to align objects with
the Stage:
fl.getDocumentDOM().setAlignToDocument(true);
See also
document.getAlignToDocument()
document.setBlendMode()
Availability
Flash 8.
Usage
document.setBlendMode(
mode
)
Parameters
mode
A string that represents the desired blend mode for the selected objects. Acceptable
values are
"normal"
,
"layer"
,
"multiply"
, "
screen"
,
"overlay"
,
"hardlight"
,
"lighten"
,
"darken"
,
"difference"
,
"add"
,
"subtract"
,
"invert"
,
"alpha"
, and
"erase".
Returns
Nothing.
Description
Method; sets the blend mode for the selected objects.
Example
The following example sets the blend mode for the selected object to
"add"
.
fl.getDocumentDOM().setBlendMode("add");
See also
document.addFilter()
,
document.setFilterProperty()
,
symbolInstance.blendMode
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...