# Giving My Buttons Depth/Parallax

**URL:** <https://forum.kirupa.com/t/giving-my-buttons-depth-parallax/219584>\
**Category:** flash\
**Created:** [March 18, 2007, 5:50am UTC](https://forum.kirupa.com/t/giving-my-buttons-depth-parallax/219584 "2007-03-18T05:50:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomyknoker](https://avatars.discourse-cdn.com/v4/letter/t/50afbb/32.png) [@tomyknoker](https://forum.kirupa.com/u/tomyknoker)\
**Post date:** [March 18, 2007, 5:50am UTC](https://forum.kirupa.com/t/giving-my-buttons-depth-parallax/219584/1 "2007-03-18T05:50:58Z")

</div>

Hi all,

I have 4 buttons on my stage which sit at random points, I am trying to achive the following. When the mouse moes they move in the opposite direction. I have managaed with the attached file, to get them to follow a point. But I just want them to only move about 15 pixels in any direction, and then not go any further… If anyone can take a look at the file would be greatly appreciated!
