| Package | flash.display |
| Class | public final class SpreadMethod |
| Inheritance | SpreadMethod Object |
| Language Version: | ActionScript 3.0 |
| Runtime Versions: | 1.0, 9 |
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
|
See also
| Constant | Defined By | ||
|---|---|---|---|
| PAD : String = "pad" [static] Specifies that the gradient use the pad spread method. | SpreadMethod | ||
| REFLECT : String = "reflect" [static] Specifies that the gradient use the reflect spread method. | SpreadMethod | ||
| REPEAT : String = "repeat" [static] Specifies that the gradient use the repeat spread method. | SpreadMethod | ||
| PAD | Constant |
public static const PAD:String = "pad"| Language Version: | ActionScript 3.0 |
| Runtime Versions: | 1.0, 9 |
Specifies that the gradient use the pad spread method.
| REFLECT | Constant |
public static const REFLECT:String = "reflect"| Language Version: | ActionScript 3.0 |
| Runtime Versions: | 1.0, 9 |
Specifies that the gradient use the reflect spread method.
| REPEAT | Constant |
public static const REPEAT:String = "repeat"| Language Version: | ActionScript 3.0 |
| Runtime Versions: | 1.0, 9 |
Specifies that the gradient use the repeat spread method.