User Guide

838 ActionScript classes
this.lineTo(0, 0);
this.endFill();
This example uses "pad" for the spread method, so the gradient fill looks like the following:
If you used
"reflect" for the spread method, the gradient fill would look like the following:
If you used
"repeat" for the spread method, the gradient fill would look like the following:
interpolationMethod:String [optional] - Added in Flash Player 8. Either "RGB" or
"linearRGB". With "linearRGB", the colors are distributed linearly in the gradient. The
default value is "RGB".
For example, consider a simple linear gradient between two colors (with the
spreadMethod
parameter set to "reflect"). The different interpoliation methods affect the appearance as
follows:
"linearRGB" "RGB"