Create an animated line

I have a question i cant find the answer for. I have seen people having lines moving in all directions. For example a circle who is moving from basically nothing and the line is created and then to a circle. I cant figure out how that is done. It would be great if somone had a tutorial for that or can tell me how it can be done:)

This might get you started:

http://www.kirupa.com/developer/actionscript/tricks/drawing_api.htm

i see… but how do u animate it… thats what i really want to know

how do you wan’t to animate it?

i mean do you wan’t it to go from side to side, or just got left and up,

_root.onEnterFrame=function(){this._x-=3,this._y-=2}

this kind of animation?