| Package | mx.graphics |
| Class | public class LinearGradient |
| Implements | IFill |
entries Array
to define the colors that make up the gradient fill.
In MXML, you define a LinearGradient by adding a series of GradientEntry objects, as the following example shows:
You can also define a LinearGradient as a fill for any graphic element in ActionScript, as the following example shows:
MXML Syntax
Hide MXML Syntax
The <mx:LinearGradient> tag inherits all the tag attributes
of its superclass, and adds the following tag attributes:
<mx:LinearGradient
Properties
angle="0"
/>
See also
| Property | Defined By | ||
|---|---|---|---|
| angle : Number
Controls the transition direction.
| LinearGradient | ||
| Method | Defined By | ||
|---|---|---|---|
|
Constructor.
| LinearGradient | ||
|
| LinearGradient | ||
|
| LinearGradient | ||
| angle | property |
angle:Number [read-write] Controls the transition direction. By default, the LinearGradient class defines a transition from left to right across the graphical element. A value of 180 causes the transition to occur from right to left.
public function get angle():Number
public function set angle(value:Number):void
| LinearGradient | () | Constructor |
public function LinearGradient()
Constructor.
| begin | () | method |
public function begin(target:Graphics, rc:Rectangle):void
Parameters
target:Graphics — The target Graphics object that is being filled.
|
|
rc:Rectangle — The Rectangle object that defines the size of the fill inside the
target. If the dimensions of the Rectangle are larger than the
dimensions of the target, the fill is clipped. If the dimensions
of the Rectangle are smaller than the dimensions of the target,
the fill expands to fill the entire target.
|
| end | () | method |
public function end(target:Graphics):void
Parameters
target:Graphics — The Graphics object that is being filled.
|
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/common/langref/mx/graphics/LinearGradient.html