How do I have a shape draw itself out? Something like a circle or a square and such.
You mean random?
drawing API
thats about all i know on the subject
you can find some source fla’s on http://flashtothecore.praystation.com
Here’s a prototype you can use to create self-drawing circles:
MovieClip.prototype.drawCircle = function(x,y,radius){
var angle = Math.PI+Math.PI/2;
this.lineStyle(1,0x000000,100);
this.moveTo(x+Math.cos(angle)*radius,y+Math.sin(angle)*radius);
this.onEnterFrame = function(){
angle+=0.1
angle >= 3.5*Math.PI ? delete this.onEnterFrame : null;
this.lineTo(x+Math.cos(angle)*radius,y+Math.sin(angle)*radius);
}
}
// Example usage:
this.createEmptyMovieClip("circle",1).drawCircle(350,250,100)
or you could go the non actionscipt way and create the self drawing shape animation by using shape tweens and frame by frame animation.
Theres also this:
T_T didnt think it was this complicated. Thank you all for replying, I’ll work on this
well waht exactly do you mean you have an example because sometimes its just masks just to make sure you are getting the correct answers to what you were asking if you have an example please show us