# Controlling stage scrolling with mouse position

**URL:** <https://forum.kirupa.com/t/controlling-stage-scrolling-with-mouse-position/232211>\
**Category:** Uncategorized\
**Created:** [July 11, 2007, 10:31pm UTC](https://forum.kirupa.com/t/controlling-stage-scrolling-with-mouse-position/232211 "2007-07-11T22:31:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![panoonan](https://avatars.discourse-cdn.com/v4/letter/p/b4bc9f/32.png) [@panoonan](https://forum.kirupa.com/u/panoonan)\
**Post date:** [July 11, 2007, 10:31pm UTC](https://forum.kirupa.com/t/controlling-stage-scrolling-with-mouse-position/232211/1 "2007-07-11T22:31:10Z")

</div>

I am trying to create a stage that moves around based on the x and y location of my mouse with easing to stop the screen from going past the boundaries. Any thoughts or advice?

here is an example  
[http://www.chromazone-imaging.co.uk/flashindex.html](http://www.chromazone-imaging.co.uk/flashindex.html)

thanks  
-P
