Document object
109
Description
Method; identical to retrieving the value of the To Stage button in the Align panel. Gets the
preference that can be used for
document.align()
,
document.distribute()
,
document.match()
, and
document.space()
methods on the document.
Example
The following example retrieves the value of the To Stage button in the Align panel. If the
return value is
true
, the To Stage button is active; otherwise, it is not.
var isAlignToDoc = fl.getDocumentDOM().getAlignToDocument();
fl.getDocumentDOM().align("left", isAlignToDoc);
See also
document.setAlignToDocument()
document.getBlendMode()
Availability
Flash 8.
Usage
document.getBlendMode()
Parameters
None.
Returns
A string that specifies the blend mode for the selected object(s). If more than one object is
selected and they have different blend modes, the string reflects the blend mode of the object
with the highest depth.
Description
Method; returns a string that specifies the blend mode for the selected object(s).
Example
The following example displays the name of the blend mode in the Output panel:
fl.trace(fl.getDocumentDom().getBlendMode());
NOT
E
The return value is unpredictable if the selection contains objects that don’t support
blend modes, or that have a blend mode value of "
normal
".
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...