1. Draw Animating Circle
var cnt:Number = -90; // from which degree
var radius:Number = 100;
this.createEmptyMovieClip(”circle”,this.getNextHighestDepth());
circle._x = 200;
circle._y = 200;
circle.lineStyle(1,0xFF0000,100);
xx = 100*Math.cos(-90*Math.PI/180);
yy = 100*Math.sin(-90*Math.PI/180);
circle.moveTo(xx,yy);
intervalId = setInterval(this, “executeCallback”, 5);
// function to darw a circele.
function executeCallback() {
xx = 100*Math.cos(cnt*Math.PI/180);
[...]

RSS Feeds
Feed Comment 




