# Boundaries issue

**URL:** https://forum.kirupa.com/t/boundaries-issue/176924
**Category:** flash
**Created:** [January 28, 2006, 1:18am UTC](https://forum.kirupa.com/t/boundaries-issue/176924 "2006-01-28T01:18:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![B\_L\_U\_E](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@B\_L\_U\_E](https://forum.kirupa.com/u/B_L_U_E)
#### Post date: [January 28, 2006, 1:18am UTC](https://forum.kirupa.com/t/boundaries-issue/176924/1 "2006-01-28T01:18:03Z")

</div>

The boundaries work, but the box gets stuck. I know what is happening, but I don’t know how to overcome this? You can see what I mean:[AS]  
box.onEnterFrame = function() {  
(this.\_y!==\_root.\_ymouse&&this.\_y\>=\_root.bgmc.\_y&&this.\_y+this.\_height\<=\_root.bgmc.\_y+\_root.bgmc.\_height) ? this.\_y -= ((this.\_y+this.\_height/2)-\_root.\_ymouse)/10: null;  
(this.\_x!==\_root.\_xmouse&&this.\_x\>=\_root.bgmc.\_x&&this.\_x+this.\_width\<=\_root.bgmc.\_x+\_root.bgmc.\_width) ? this.\_x -= ((this.\_x+this.\_width/2)-\_root.\_xmouse)/10: null;  
}  
[/AS]Thanks!
