Document.getblendmode(), Document.getcustomfill() – Adobe Extending Flash Professional CS5 User Manual
Page 125

103
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
document.getBlendMode()
Availability
Flash 8.
Usage
document.getBlendMode()
Parameters
None.
Returns
A string that specifies the blending mode for the selected object(s). If more than one object is selected and they have
different blending modes, the string reflects the blending mode of the object with the highest depth.
Note: The return value is unpredictable if the selection contains objects that don’t support blending modes, or that have
a blending mode value of "
normal
".
Description
Method; returns a string that specifies the blending mode for the selected object(s).
Example
The following example displays the name of the blending mode in the Output panel:
fl.trace(fl.getDocumentDom().getBlendMode());
document.getCustomFill()
Availability
Flash MX 2004.
Usage
document.getCustomFill([objectToFill])
Parameters
objectToFill
A string that specifies the location of the fill object. The following values are valid:
•
"toolbar"
returns the fill object of the Tools panel and Property inspector.
•
"selection"
returns the fill object of the selection.
If you omit this parameter, the default value is
"selection"
. If there is no selection, the method returns
undefined
. This parameter is optional.
Returns
The
specified by the objectToFill parameter, if successful; otherwise, it returns
undefined.