# AS problem

**URL:** https://forum.kirupa.com/t/as-problem/205585
**Category:** Uncategorized
**Created:** [October 31, 2006, 12:06am UTC](https://forum.kirupa.com/t/as-problem/205585 "2006-10-31T00:06:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Flash\_Man1](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Flash\_Man1](https://forum.kirupa.com/u/Flash_Man1)
#### Post date: [October 31, 2006, 12:06am UTC](https://forum.kirupa.com/t/as-problem/205585/1 "2006-10-31T00:06:11Z")

</div>

when i have this code the second popup will work fine “pop\_up” but when that code is removed “winaprize” works fine… i have three popups on the one frame is there a way to have all three working properly???

here is the code:

```auto
winaprize._visible = false;
onMouseDown = function(){
    
    if (!winaprize.hitTest(_xmouse, _ymouse)){
        winaprize._visible = false;
    }
};
prize.onPress = function (){
    winaprize._visible = true
}

pop_up._visible = false;
onMouseDown = function(){
    
    if (!pop_up.hitTest(_xmouse, _ymouse)){
        pop_up._visible = false;
    }
};
question.onPress = function (){
    pop_up._visible = true
}

```

pop\_up will work and winaprize won’t
