# Please can anyone solve this problem...it's taking over my life!

**URL:** https://forum.kirupa.com/t/please-can-anyone-solve-this-problem-its-taking-over-my-life/289407
**Category:** Uncategorized
**Created:** [May 29, 2009, 8:46pm UTC](https://forum.kirupa.com/t/please-can-anyone-solve-this-problem-its-taking-over-my-life/289407 "2009-05-29T20:46:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![iggyotis](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@iggyotis](https://forum.kirupa.com/u/iggyotis)
#### Post date: [May 29, 2009, 8:46pm UTC](https://forum.kirupa.com/t/please-can-anyone-solve-this-problem-its-taking-over-my-life/289407/1 "2009-05-29T20:46:39Z")

</div>

Hi, I hope someone can hep me with this as it’s driving me crazy!!..I have a magnify glass effect for my main movie and everything is working great, except I need the magnify glass to stay within certain boundaries on the stage…basically when someone moves there mouse away from the flash movie in the centre of the page in a browser, it cuts off the glass and it looks funny (see [www.zoeglazebrook.co.uk](http://www.zoeglazebrook.co.uk))…

This is the code on the main timeline, and I just need to add in 125, 127, 1095, 775 coordinates in there to make it not go past these points on the stage:

var moveGlass:Number;

magnifyingGlass.onPress = function() {  
moveGlass = setInterval(startGlass,1);  
};  
function startGlass() {  
magnifyingGlass.\_x = \_root.\_xmouse;  
magnifyingGlass.\_y = \_root.\_ymouse;  
}

magnifyingGlass.onEnterFrame = function(){  
this.largeobject.\_x = (this.\_parent.original.\_x-this.\_x)\*2;  
this.largeobject.\_y = (this.\_parent.original.\_y-this.\_y)\*2;
