# AS Movement to X,Y

**URL:** <https://forum.kirupa.com/t/as-movement-to-x-y/152870>\
**Category:** flash\
**Created:** [June 27, 2005, 9:39pm UTC](https://forum.kirupa.com/t/as-movement-to-x-y/152870 "2005-06-27T21:39:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sixfortyfive](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sixfortyfive/32/671_2.png) [@sixfortyfive](https://forum.kirupa.com/u/sixfortyfive)\
**Post date:** [June 27, 2005, 9:39pm UTC](https://forum.kirupa.com/t/as-movement-to-x-y/152870/1 "2005-06-27T21:39:00Z")

</div>

What is a good function to simply move an object to X and Y coordinates?

I’ve looked around the forums, and all I can find is actionscript that does movement plus other animations, like rotate and scale.

I just want to let the user drag an object, but when they release it, that object moves back to certain X and Y coordiantes.
