Fill.colorarray; Fill.matrix; Fill.posarray - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

fill.colorArray

Availability
Flash MX 2004.
Usage
fill.colorArray
Description
Property; an array of colors in gradient. This property is available only if the value of the
property is either
fill.style
Example
The following example displays the color array of the current selection, if appropriate, in the
Output panel.
var fill = fl.getDocumentDOM().getCustomFill();
if(fill.style == "linearGradient" || fill.style == "radialGradient")
alert(fill.colorArray);

fill.matrix

Availability
Flash MX 2004.
Usage
fill.matrix
Description
Property; a
Matrix object

fill.posArray

Availability
Flash MX 2004.
Usage
fill.posArray
Description
Property; an array of integers, each in the range 0 ... 255, indicating the position of the
corresponding color. This property is available only if the value of the
either
"radialGradient"
Example
The following example specifies the colors to use in a linear gradient for the current selection:
var fill = fl.getDocumentDOM().getCustomFill();
fill.style = "linearGradient";
fill.colorArray = [ 0x00ff00, 0xff0000, 0x0000ff ];
"radialGradient"
that defines the placement, orientation, and scales for gradient fills.
or
"linearGradient"
or
"linearGradient"
fill.style
.
.
property is
Fill object
159

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents