MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 146

Extending flash
Table of Contents

Advertisement

document.setCustomFill()
Availability
Flash MX 2004.
Usage
document.setCustomFill( fill )
Parameters
A Fill object that specifies the fill settings to be used. See
Fill
object.
fill
Returns
Nothing.
Description
Method; sets the fill settings for the Tools panel, Property inspector, and any selected shapes.
This allows a script to set the fill settings before drawing the object, rather than drawing the
object, selecting it, and changing the fill settings. It also lets a script change the Tools panel
and Property inspector fill settings.
Example
The following example changes the color of the fill color swatch in the Tools panel, Property
inspector, and any selected shapes to white:
var fill = fl.getDocumentDOM().getCustomFill();
fill.color = '#FFFFFF';
fill.style = "solid";
fl.getDocumentDOM().setCustomFill(fill);
See also
document.getCustomFill()
document.setCustomStroke()
Availability
Flash MX 2004.
Usage
document.setCustomStroke( stroke )
Parameters
A
Stroke
object.
stroke
146
Objects

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents