# Click To Position - HELP PLEASE!

**URL:** <https://forum.kirupa.com/t/click-to-position-help-please/318723>\
**Category:** Uncategorized\
**Created:** [January 28, 2011, 6:10am UTC](https://forum.kirupa.com/t/click-to-position-help-please/318723 "2011-01-28T06:10:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcsquid](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@mcsquid](https://forum.kirupa.com/u/mcsquid)\
**Post date:** [January 28, 2011, 6:10am UTC](https://forum.kirupa.com/t/click-to-position-help-please/318723/1 "2011-01-28T06:10:15Z")

</div>

Hey Guys, I have a quick question. I’m doing a click to position code. So when you click a button it will take you to a set of specific coordinates.

* * *

example:

example\_btn.addEventListener(MouseEvent.CLICK, fl\_ClickToPosition\_1);

function fl\_ClickToPosition\_1(event:MouseEvent):void  
{  
example.x = 0;  
example.y = 400.85;  
}

* * *

my question is what can I do to slow the speed down so it shows actual movement as it is going from position to position? I know you could do it in as2 fairly simple but I want to do it in AS3.

THANKS IN ADVANCE!!
