# Having problem restricting boundary area

**URL:** <https://forum.kirupa.com/t/having-problem-restricting-boundary-area/194508>\
**Category:** Uncategorized\
**Created:** [July 24, 2006, 8:24am UTC](https://forum.kirupa.com/t/having-problem-restricting-boundary-area/194508 "2006-07-24T08:24:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Evael](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/evael/32/2603_2.png) [@Evael](https://forum.kirupa.com/u/Evael)\
**Post date:** [July 24, 2006, 8:24am UTC](https://forum.kirupa.com/t/having-problem-restricting-boundary-area/194508/1 "2006-07-24T08:24:09Z")

</div>

i try to set a boundary but it don work.  
i dont know what’s wrong.  
is like if more than -170 and less than -190, it will gotoAndPlay (2)

so i script…

if (-190 \> green\_mc.\_x\<-170){  
gotoAndPlay(2)  
}

but is not working…  
and how to script if i wan to restrict left and rite area as well as top and bottom area?
