# Move To Mouse

**URL:** <https://forum.kirupa.com/t/move-to-mouse/279566>\
**Category:** flash\
**Created:** [January 16, 2009, 4:06am UTC](https://forum.kirupa.com/t/move-to-mouse/279566 "2009-01-16T04:06:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanDaMan](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@DanDaMan](https://forum.kirupa.com/u/DanDaMan)\
**Post date:** [January 16, 2009, 4:06am UTC](https://forum.kirupa.com/t/move-to-mouse/279566/1 "2009-01-16T04:06:44Z")

</div>

Hey, I’m using an external .as file that is included in a .fla file. It is programmed so that every time the mouse button is clicked, the instance on the stage creates a child of another class. This all works perfectly. Now how to I make it so that the new child from the class moves towards where the mouse was when the mouse key was pressed? Thanks in advance.
