# Draw line to mouse and trace x,y every 5 pixels

**URL:** <https://forum.kirupa.com/t/draw-line-to-mouse-and-trace-x-y-every-5-pixels/317612>\
**Category:** flash\
**Created:** [December 27, 2010, 5:05pm UTC](https://forum.kirupa.com/t/draw-line-to-mouse-and-trace-x-y-every-5-pixels/317612 "2010-12-27T17:05:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skribble](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Skribble](https://forum.kirupa.com/u/Skribble)\
**Post date:** [December 27, 2010, 5:05pm UTC](https://forum.kirupa.com/t/draw-line-to-mouse-and-trace-x-y-every-5-pixels/317612/1 "2010-12-27T17:05:14Z")

</div>

As the title loosely suggests, I’d like to draw a line from pointA to the mouse position, and trace along that line and return the x,y position every 5 pixels.

If I could get any help on this it would be most appreciated.

Thanks!

Brendan
