Hi all,
I’m trying to draw a circle using ActionScript instead of doing it on the timeline.
I found this script, which just draws the circle in one frame, but I need to see the circle being drawen. Can anyone help with this, or point me in the right direction.
[AS]
this.createEmptyMovieClip(“drawing_mc”, 5);
var x = 275;
var y = 200;
var R = 100;
var a = R0.4086;
var b = R0.7071;
drawing_mc.lineStyle(5, 0xff0000, 90);
drawing_mc.moveTo(x-R, y);
drawing_mc.curveTo(x-R, y-a, X-b, Y-b);
drawing_mc.curveTo(x-a, y-R, x, y-R);
drawing_mc.curveTo(x+a, y-R, x+b, y-b);
drawing_mc.curveTo(x+R, y-a, x+R, y);
drawing_mc.curveTo(x+R, y+a, x+b, y+b);
drawing_mc.curveTo(x+a, y+R, x, y+R);
drawing_mc.curveTo(x-a, y+R, x-b, y+b);
drawing_mc.curveTo(x-R, y+a, x-R, y);
[/AS]