Packageflash.display
Classpublic final class SpreadMethod
InheritanceSpreadMethod Inheritance Object

A class that provides values for the spreadMethod parameter in the beginGradientFill() and lineGradientStyle() methods of the Graphics class.

The following shows the same gradient fill using various spread methods:

SpreadMethod.PAD SpreadMethod.REFLECT SpreadMethod.REPEAT

See also
flash.display.Graphics.beginGradientFill(), flash.display.Graphics.lineGradientStyle()


Public Constants
 PropertyDefined 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
Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties
 PropertyDefined by
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods
 FunctionDefined by
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Constant detail
PAD constant
public static const PAD:String = "pad"

Specifies that the gradient use the pad spread method.
REFLECT constant
public static const REFLECT:String = "reflect"

Specifies that the gradient use the reflect spread method.
REPEAT constant
public static const REPEAT:String = "repeat"

Specifies that the gradient use the repeat spread method.




 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/labs/flashauthoringpreview/flash/display/SpreadMethod.html