Document.setaligntodocument(), Document.setblendmode() – Adobe Extending Flash Professional CS5 User Manual
Page 161
139
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
fl.getDocumentDOM().selectNone();
See also
document.setAlignToDocument()
Availability
Flash MX 2004.
Usage
document.setAlignToDocument(bToStage)
Parameters
bToStage
A Boolean value that, if set to
true
, aligns objects to the Stage. If set to
false
, it does not.
Returns
Nothing.
Description
Method; sets the preferences for
,
, and
to act on the document. This method is equivalent to enabling the To Stage button in the Align
panel.
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.setBlendMode()
Availability
Flash 8.
Usage
document.setBlendMode(mode)
Parameters
mode
A string that represents the desired blending mode for the selected objects. Acceptable values are
"normal"
,
"layer"
,
"multiply"
, "
screen"
,
"overlay"
,
"hardlight"
,
"lighten"
,
"darken"
,
"difference"
,
"add"
,
"subtract"
,
"invert"
,
"alpha"
, and
"erase".