# Transitioning object to mouse on click?

**URL:** https://forum.kirupa.com/t/transitioning-object-to-mouse-on-click/206996
**Category:** flash
**Created:** [November 13, 2006, 10:19pm UTC](https://forum.kirupa.com/t/transitioning-object-to-mouse-on-click/206996 "2006-11-13T22:19:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![REEF](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@REEF](https://forum.kirupa.com/u/REEF)
#### Post date: [November 13, 2006, 10:19pm UTC](https://forum.kirupa.com/t/transitioning-object-to-mouse-on-click/206996/1 "2006-11-13T22:19:32Z")

</div>

How would I slide an object to the mouse, using onMouseDown?

I should be searching, but I couldnt think of a keyword. I’ve tried a whole bunch of math detecting distance & direction but of course some of them go negative (lol) & I got stuck, but I have tried!

No easing please, thanks!
