Rounded rectangle drawing utility.
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
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] |
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);