# Drawing api?

**URL:** <https://forum.kirupa.com/t/drawing-api/13890>\
**Category:** Uncategorized\
**Created:** [February 19, 2003, 1:56pm UTC](https://forum.kirupa.com/t/drawing-api/13890 "2003-02-19T13:56:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivanwright](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ivanwright/32/119_2.png) [@ivanwright](https://forum.kirupa.com/u/ivanwright)\
**Post date:** [February 19, 2003, 1:56pm UTC](https://forum.kirupa.com/t/drawing-api/13890/1 "2003-02-19T13:56:41Z")

</div>

i have a movie clip whose movement is controlled by the user (keyboard input or mouse clicks, etc.). i want to be able to have a drawn line follow the moving movie clip around… basically recording it’s movements. anyone have any ideas?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 19, 2003, 2:10pm UTC](https://forum.kirupa.com/t/drawing-api/13890/2 "2003-02-19T14:10:59Z")

</div>

In the onEnterFrame or whatever you have the updates frame by frame… Have a variable that holds where the MC was last…

oldx = mc.\_x;  
oldy = mc.\_y;

Easy enough… Then just have the line follow that… If that’s what you meant by a line follow a mc…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 19, 2003, 2:30pm UTC](https://forum.kirupa.com/t/drawing-api/13890/3 "2003-02-19T14:30:49Z")

</div>

Did you have a look at the tutes and the AS tricks? :trout:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 19, 2003, 2:32pm UTC](https://forum.kirupa.com/t/drawing-api/13890/4 "2003-02-19T14:32:15Z")

</div>

I’ve gotta start saving myself time and effort by just reporting the people to links _lmao_

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 19, 2003, 2:33pm UTC](https://forum.kirupa.com/t/drawing-api/13890/5 "2003-02-19T14:33:17Z")

</div>

yeah ilyaslamasse, but i wasn’t able to find what i was looking for… i’m trying what playamarz suggested now… did you have any suggestions?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 19, 2003, 2:44pm UTC](https://forum.kirupa.com/t/drawing-api/13890/6 "2003-02-19T14:44:41Z")

</div>

I don’t know, are you trying to record the mouse motion or simply to make a trailer??

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 19, 2003, 2:46pm UTC](https://forum.kirupa.com/t/drawing-api/13890/7 "2003-02-19T14:46:48Z")

</div>

i’m just trying to get a line to form where my movie clip has been as it is being moved around the stage with the keyboard…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 19, 2003, 4:00pm UTC](https://forum.kirupa.com/t/drawing-api/13890/8 "2003-02-19T16:00:25Z")

</div>

Then it’s exactly as the drawing board, except that you don’t follow the mouse coordinates, but your clip’s coordinates.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 19, 2003, 4:21pm UTC](https://forum.kirupa.com/t/drawing-api/13890/9 "2003-02-19T16:21:58Z")

</div>

oh, sweet as… i didn’t see it listed in the tutorial section… i found it with the search. THANKS ilyaslamasse!
