de.mirell.drawing
class ShapeDrawer
Object
|
+--de.mirell.drawing.ShapeDrawer
class ShapeDrawer extends Object
Provides functions to draw shapes on MovieClips using standard Drawing API.
- Version:1.0
Method Summary
public static drawArc (
Movie: MovieClip, x: Number, y: Number, radius: Number, arc: Number, startAngle: Number, yRadius: Number
): Object
Draw a variable arc within an movie.
Draws a circle within a movie.
public static drawRectangle (
Movie: MovieClip, x: Number, y: Number, width: Number, height: Number
): Void
Draws a rectangle within a movie.
public static drawStar (
Movie: MovieClip, x: Number, y: Number, points: Number, innerRadius: Number, outerRadius: Number, angle: Number
): Void
Draw a star within an movie.
Method Documentation
drawArc
public static function drawArc (
Movie: MovieClip,
x: Number,
y: Number,
radius: Number,
arc: Number,
startAngle: Number,
yRadius: Number): Object
x: Number,
y: Number,
radius: Number,
arc: Number,
startAngle: Number,
yRadius: Number): Object
Draw a variable arc within an movie.
- Parameters:
Movie Target Movie x This must be the current pen position... other values will look bad y This must be the current pen position... other values will look bad radius of Arc. If [optional] yRadius is defined, then r is the x radius arc sweep of the arc. Negative values draw clockwise. startAngle starting angle in degrees. yRadius [optional] y radius of arc. Thanks to Robert Penner for the idea. - Author:Ric Ewing (ric@formequalsfunction.com), Robert Penner, Eric Mueller, Michael Hurwicz
- Version:1.5
drawCircle
public static function drawCircle (
Movie: MovieClip,
x: Number,
y: Number,
radius: Number): Void
x: Number,
y: Number,
radius: Number): Void
Draws a circle within a movie.
- Parameters:
Movie Target Movie to draw on x Center x coordinate of the circle y Center y coordinate of the circle radius The radius of the circle - Author:Mirell Development
- Version:1.0
drawRectangle
public static function drawRectangle (
Movie: MovieClip,
x: Number,
y: Number,
width: Number,
height: Number): Void
x: Number,
y: Number,
width: Number,
height: Number): Void
Draws a rectangle within a movie.
- Parameters:
Movie Target Movie to draw on x Top left corner's x coordinate of the rectangle to be drawn y Top left corner's y coordinate of the rectangle to be dranw width The width of the rectangle height The height of the rectangle - Author:Mirell Development
- Version:1.0
drawStar
public static function drawStar (
Movie: MovieClip,
x: Number,
y: Number,
points: Number,
innerRadius: Number,
outerRadius: Number,
angle: Number): Void
x: Number,
y: Number,
points: Number,
innerRadius: Number,
outerRadius: Number,
angle: Number): Void
Draw a star within an movie.
- Parameters:
Movie Target Movie x center of star y center of star points number of points (Math.abs(points) must be > 2) innerRadius radius of the indent of the points outerRadius radius of the tips of the points angle [optional] starting angle in degrees. (defaults to 0) - Author:Ric Ewing (ric@formequalsfunction.com), Robert Penner, Eric Mueller, Michael Hurwicz
- Version:1.4
- ShapeDrawer.as, Last Modified: 04.08.2004 02:12:30