Class com.sekati.draw.RoundRectangle

Description

Rounded rectangle drawing utility.

Method Index

draw()

Method Detail

draw

static public function draw(mc:MovieClip, topLeft:Point, bottomRight:Point, cornerRadius:Number, 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 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 ());
 	RoundRectangle.draw(rbox, new Point(150, 150), new Point(250, 250), 12, 0xff00ff, 100, 1, 0x00fffff, 100);