# Object movement based on mouse movement

**URL:** https://forum.kirupa.com/t/object-movement-based-on-mouse-movement/218543
**Category:** flash
**Created:** [March 8, 2007, 5:29pm UTC](https://forum.kirupa.com/t/object-movement-based-on-mouse-movement/218543 "2007-03-08T17:29:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DDD](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@DDD](https://forum.kirupa.com/u/DDD)
#### Post date: [March 8, 2007, 5:29pm UTC](https://forum.kirupa.com/t/object-movement-based-on-mouse-movement/218543/1 "2007-03-08T17:29:06Z")

</div>

Not sure how to word this but. I have a object on the stage lets say that is 300 pixels wide. The actual stage is only 100px wide. I want to be able to “pan” the object left and right based on mouse position/movement. I saw a tutorial for it a while back but cant seem to find it. Anyone have a link to a tut or can throw out a little source code? It would be greatly appreciated.

:p:
