Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 1.0 Flash Player 9 |
The SpreadMethod class provides values for the
spreadMethod
parameter
in the
beginGradientFill()
and
lineGradientStyle()
methods of the Graphics class.
The following example shows the same gradient fill using various spread methods:
|
|
|
SpreadMethod.PAD
|
SpreadMethod.REFLECT
|
SpreadMethod.REPEAT
|
public static const PAD:String = "pad"
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 1.0 Flash Player 9 |
Specifies that the gradient use the pad spread method.
public static const REFLECT:String = "reflect"
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 1.0 Flash Player 9 |
Specifies that the gradient use the reflect spread method.
public static const REPEAT:String = "repeat"
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 1.0 Flash Player 9 |
Specifies that the gradient use the repeat spread method.