# Moving object from point A to point B - mathematical problem

**URL:** <https://forum.kirupa.com/t/moving-object-from-point-a-to-point-b-mathematical-problem/256137>\
**Category:** flash\
**Created:** [March 31, 2008, 8:13am UTC](https://forum.kirupa.com/t/moving-object-from-point-a-to-point-b-mathematical-problem/256137 "2008-03-31T08:13:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bojan](https://avatars.discourse-cdn.com/v4/letter/b/b782af/32.png) [@Bojan](https://forum.kirupa.com/u/Bojan)\
**Post date:** [March 31, 2008, 8:13am UTC](https://forum.kirupa.com/t/moving-object-from-point-a-to-point-b-mathematical-problem/256137/1 "2008-03-31T08:13:41Z")

</div>

Hi,  
I have mathematical problem.

I want to move object from point A to point B but not just X or Y aixis. For example point A(0,0) and point B(500,500).

Please if somebody can send me generic equation to put in ON\_ENTER\_FRAME event so on each frame object is a little bit closer to point B.  
Thanks,
