# Help with overlapping rollover states

**URL:** <https://forum.kirupa.com/t/help-with-overlapping-rollover-states/224810>\
**Category:** Uncategorized\
**Created:** [May 5, 2007, 7:44pm UTC](https://forum.kirupa.com/t/help-with-overlapping-rollover-states/224810 "2007-05-05T19:44:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yabai](https://avatars.discourse-cdn.com/v4/letter/y/958977/32.png) [@yabai](https://forum.kirupa.com/u/yabai)\
**Post date:** [May 5, 2007, 7:44pm UTC](https://forum.kirupa.com/t/help-with-overlapping-rollover-states/224810/1 "2007-05-05T19:44:28Z")

</div>

hi,

i have a grid of images. each image needs a rollover state that is bigger than the actual image. this means the rollover overlaps other images. my problem is that when a rollover state is working i want the other images to be not enabled. i am using MC as buttons so am not sure how to auto turn off the other MC with AS.

here is the AS i have to control the MC’s:  
var num:MovieClip;  
function over() {  
this.gotoAndPlay(8);  
}  
function out() {  
this.gotoAndPlay(1);  
}

people0.onRollOver = over;  
people0.onRollOut = out;  
people1.onRollOver = over;  
people1.onRollOut = out;

any tips would be great. thanks.
