Packageflash.display
Classpublic final class LineScaleMode
InheritanceLineScaleMode Inheritance Object

A class that provides values for the scaleMode parameter in the Graphics.lineStyle() method.

See also
flash.display.Graphics.lineStyle()


Public Constants
 PropertyDefined by
  HORIZONTAL : String = "horizontal"
[static] With this setting used as the scaleMode parameter of the lineStyle() method, the thickness of the line scales vertically only.
LineScaleMode
  NONE : String = "none"
[static] With this setting used as the scaleMode parameter of the lineStyle() method, the thickness of the line never scales.
LineScaleMode
  NORMAL : String = "normal"
[static] With this setting used as the scaleMode parameter of the lineStyle() method, the thickness of the line always scales when the object is scaled (the default).
LineScaleMode
  VERTICAL : String = "vertical"
[static] With this setting used as the scaleMode parameter of the lineStyle() method, the thickness of the line scales horizontally only.
LineScaleMode
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
HORIZONTAL constant
public static const HORIZONTAL:String = "horizontal"

With this setting used as the scaleMode parameter of the lineStyle() method, the thickness of the line scales vertically only. For example, consider the following circle, drawn with a one-pixel line, and each with the scaleMode parameter set to LineScaleMode.VERTICAL. The circle on the left is scaled vertically only, and the circle on the right is scaled both vertically and horizontally:

NONE constant
public static const NONE:String = "none"

With this setting used as the scaleMode parameter of the lineStyle() method, the thickness of the line never scales.
NORMAL constant
public static const NORMAL:String = "normal"

With this setting used as the scaleMode parameter of the lineStyle() method, the thickness of the line always scales when the object is scaled (the default).
VERTICAL constant
public static const VERTICAL:String = "vertical"

With this setting used as the scaleMode parameter of the lineStyle() method, the thickness of the line scales horizontally only. For example, consider the following circle, drawn with a one-pixel line, and each with the scaleMode parameter set to LineScaleMode.HORIZONTAL. The circle on the left is scaled horizontally only, and the circle on the right is scaled both vertically and horizontally:





 

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

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