# Create an animated line

**URL:** <https://forum.kirupa.com/t/create-an-animated-line/184800>\
**Category:** flash\
**Created:** [April 7, 2006, 11:34pm UTC](https://forum.kirupa.com/t/create-an-animated-line/184800 "2006-04-07T23:34:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_R](https://avatars.discourse-cdn.com/v4/letter/t/13edae/32.png) [@Tom\_R](https://forum.kirupa.com/u/Tom_R)\
**Post date:** [April 7, 2006, 11:34pm UTC](https://forum.kirupa.com/t/create-an-animated-line/184800/1 "2006-04-07T23:34:00Z")

</div>

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:)

---

<div class="post-metadata">

**Author:** ![creatify](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@creatify](https://forum.kirupa.com/u/creatify)\
**Post date:** [April 7, 2006, 11:49pm UTC](https://forum.kirupa.com/t/create-an-animated-line/184800/2 "2006-04-07T23:49:51Z")

</div>

This might get you started:

[http://www.kirupa.com/developer/actionscript/tricks/drawing\_api.htm](http://www.kirupa.com/developer/actionscript/tricks/drawing_api.htm)

---

<div class="post-metadata">

**Author:** ![Tom\_R](https://avatars.discourse-cdn.com/v4/letter/t/13edae/32.png) [@Tom\_R](https://forum.kirupa.com/u/Tom_R)\
**Post date:** [April 8, 2006, 12:04am UTC](https://forum.kirupa.com/t/create-an-animated-line/184800/3 "2006-04-08T00:04:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bombsledder](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@bombsledder](https://forum.kirupa.com/u/bombsledder)\
**Post date:** [April 8, 2006, 2:42am UTC](https://forum.kirupa.com/t/create-an-animated-line/184800/4 "2006-04-08T02:42:43Z")

</div>

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?
