Line

Kind of class: public class
Package:
Inherits from:
  • Sprite
Author: John Polacek, john@johnpolacek.com
Classpath: com.johnpolacek.shapes.Line
File last modified: Saturday, 11 September 2010, 16:38:21
The Line class is used to quickly create Line sprites
Example

  • Create a line 700 pixels wide. var line:Line = new Line(700); Create a red line 700 pixels wide with a thickness of 3 pixels and 50% transparency that is aligned to center. var line:Line = new Line(700, 3, 0xFF0000, .5, true);

Summary

Constructor
  • Line (w:Number, strokeThickness:int = 1, strokeColor:uint = 0x000000, strokeAlpha:Number = 1, alignToCenter:Boolean = false)

Constructor

Line

function Line(w:Number, strokeThickness:int = 1, strokeColor:uint = 0x000000, strokeAlpha:Number = 1, alignToCenter:Boolean = false)