Access keys

Draw

Kind of class: class
Inherits from: none
Version: 1.00
Author: Jeroen Wijering
Classpath: com.jeroenwijering.utils.Draw
File last modified: Monday, 13 November 2006, 23:05:20
A couple of commonly used draw functions
Example:
import com.jeroenwijering.utils.Draw;
Draw.square(myClip,myWidth,myHeight,myColor);
Draw.roundedSquare(myClip,myWidth,myHeight,myCornerRadius,myColor,myStrokeThickness,myStrokeColor);

Summary

Class methods

Class methods

roundedSquare

static function roundedSquare (
tgt:MovieClip, wth:Number, hei:Number, rad:Number, clr:Number, tck:Number, cls:Number) : Void
Draw a rounded-corner square in a given movieclip.
Parameters:
tgt:
Movieclip to draw the square into.
wth:
Square width.
hei:
Square height.
rad:
Square corner radius.
clr:
Square color.
tck:
(optional) Stroke Thickness.
cls:
(optional) Stroke color.

square

static function square (
tgt:MovieClip, wth:Number, hei:Number, clr:Number, tck:Number, cls:Number) : Void
Draw a square in a given movieclip.
Parameters:
tgt:
Movieclip to draw the square into.
wth:
Square width.
hei:
Square height.
clr:
Square color.
tck:
(optional) Stroke Thickness.
cls:
(optional) Stroke color.