ActionScript 3.0 Language and Components Reference | All Packages | All Classes | Language Elements | Index | Appendixes | Conventions | Frames No Frames |
GraphicsStroke

Package | flash.display
Class | public final class GraphicsStroke
Inheritance | GraphicsStroke Object
Implements | IGraphicsStroke, IGraphicsData

Defines a line style or stroke.

A GraphicsStroke object can be used with the `Graphics.drawGraphicsData()` method. when this object is drawn it is the equivalent of calling one of the methods of the Graphics class that sets the line style, such as the `Graphics.lineStyle()` method, the `Graphics.lineBitmapStyle()` method, or the `Graphics.lineGradientStyle()` method.

See also

flash.display.Graphics.lineStyle()
flash.display.Graphics.lineBitmapStyle()
flash.display.Graphics.lineGradientStyle()
flash.display.Graphics.drawGraphicsData()

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | caps : String | GraphicsStroke
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object
|  | fill : IGraphicsFill | GraphicsStroke
|  | joints : String | GraphicsStroke
|  | miterLimit : Number | GraphicsStroke
|  | pixelHinting : Boolean | GraphicsStroke
|  | prototype : Object [static] A reference to the prototype object of a class or function object. | Object
|  | scaleMode : String | GraphicsStroke
|  | thickness : Number | GraphicsStroke

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | GraphicsStroke(thickness:Number = NaN, pixelHinting:Boolean = false, scaleMode:String = "normal", caps:String = "none", joints:String = "round", miterLimit:Number = 3.0, fill:IGraphicsFill = null) | GraphicsStroke
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toString():String Returns the string representation of the specified object. | Object
|  | valueOf():Object Returns the primitive value of the specified object. | Object

Property Detail

caps | property

`public var caps:String`

fill | property |

`public var fill:IGraphicsFill`

joints | property |

`public var joints:String`

miterLimit | property |

`public var miterLimit:Number`

pixelHinting | property |

`public var pixelHinting:Boolean`

scaleMode | property |

`public var scaleMode:String`

thickness | property |

`public var thickness:Number`
Constructor Detail

GraphicsStroke | () | Constructor

`public function GraphicsStroke(thickness:Number = NaN, pixelHinting:Boolean = false, scaleMode:String = "normal", caps:String = "none", joints:String = "round", miterLimit:Number = 3.0, fill:IGraphicsFill = null)`
Parameters

| `thickness:Number` (default = `NaN`)``
| `pixelHinting:Boolean` (default = `false`)``
| `scaleMode:String` (default = "`normal`")``
| `caps:String` (default = "`none`")``
| `joints:String` (default = "`round`")``
| `miterLimit:Number` (default = `3.0`)``
| `fill:IGraphicsFill` (default = `null`)``

Submit Feedback on LiveDocs
© 2004-2008 Adobe Systems Incorporated. All rights reserved.
Tue May 20 2008, 04:02 AM -07:00