Frame

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

  • Create a 50x50 frame with a 3-pixel black line. var frame:Frame = new Frame(50); Create a 200x50 frame with a 1-pixel red line. var frame:Frame = new Frame(200, 50, 0xFF0000, 1);

Summary

Constructor
  • Frame (w:Number, h:Number, color:uint = 0x000000, thickness:int = 3)

Constructor

Frame

function Frame(w:Number, h:Number, color:uint = 0x000000, thickness:int = 3)