Class com.sekati.draw.Rectangle

Description

Rectangle drawing utility.

Method Index

draw()

Method Detail

draw

static public function draw(mc:MovieClip, topLeft:Point, bottomRight:Point, fillColor:Number, fillAlpha:Number, strokeWeight:Number, strokeColor:Number, strokeAlpha:Number):Void

Draw a rectangle in an existing clip

Parameters

mc(Movie Clip) target clip to draw in
topLeft(Point)
bottomRight(Point)
fillColor(Number) hex fill, if undefined rectangle will not be filled
fillAlpha(Number) fill alpha transparency [default: 100]
strokeWeight(Number) border line width, if 0 or undefined no border will be drawn
strokeColor(Number) hex border color
strokeAlpha(Number) stroke alpha transparancy [default: 100]

Return

Void

 Usage:
 	var box:MovieClip = this.createEmptyMovieClip ("box", this.getNextHighestDepth ());
 	Rectangle.draw(box, new Point(50, 50), new Point(100, 100), 0xff00ff, 100, 1, 0x00ffff, 100);