Polygon drawing utility.
static public function draw(mc:MovieClip, points:Array, fillColor:Number, fillAlpha:Number, strokeWeight:Number, strokeColor:Number, strokeAlpha:Number):Void
Draw a polygon into an existing clip
mc | (Movie Clip) target clip to draw in |
points | (Array) Array of Points |
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] |
Void
Usage: var box:MovieClip = this.createEmptyMovieClip ("box", this.getNextHighestDepth ()); Polygon.draw( polyMc, pointArray, 0xff00ff, 100, 1, 0x00ffff, 100 );