Returns
The
Fill object
specified by the
undefined.
Description
Method; retrieves the fill object of the selected shape or, if specified, of the toolbar and Property
inspector. See
document.setCustomFill()
Example
The following example gets the fill object of the selection and then changes the selection's color to
white:
var fill = fl.getDocumentDOM().getCustomFill();
fill.color = '#FFFFFF';
fill.style = "solid";
fl.getDocumentDOM().setCustomFill(fill);
The following example returns the fill object of the toolbar and Property inspector and then
changes the color swatch to a linear gradient:
var fill = fl.getDocumentDOM().getCustomFill("toolbar");
fill.style = "linearGradient";
fill.colorArray = [ 0x00ff00, 0xff0000, 0x0000ff ];
fill.posArray = [0, 100, 200];
fl.getDocumentDOM().setCustomFill( fill );
document.getCustomStroke()
Availability
Flash MX 2004.
Usage
document.getCustomStroke( [locationOfStroke] )
Parameters
locationOfStroke
are valid:
•
, which, if set, returns the stroke object of the toolbar and Property inspector.
"toolbar"
•
"selection"
If you omit this parameter, it defaults to
. This parameter is optional.
undefined
Returns
The
Stroke object
returns
undefined
objectToFill
A string that specifies the location of the stroke object. The following values
, which, if set, returns the stroke object of the selection.
specified by the
locationOfStroke
.
parameter, if successful; otherwise, it returns
.
. If there is no selection, it returns
"selection"
parameter, if successful; otherwise, it
Document object
91
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?
Questions and answers