# Multiple \_visible = false; - possible to simplify?

**URL:** <https://forum.kirupa.com/t/multiple--visible-false-possible-to-simplify/193299>\
**Category:** flash\
**Created:** [July 12, 2006, 2:21pm UTC](https://forum.kirupa.com/t/multiple--visible-false-possible-to-simplify/193299 "2006-07-12T14:21:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wickedBoy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/wickedboy/32/1100_2.png) [@wickedBoy](https://forum.kirupa.com/u/wickedBoy)\
**Post date:** [July 12, 2006, 2:21pm UTC](https://forum.kirupa.com/t/multiple--visible-false-possible-to-simplify/193299/1 "2006-07-12T14:21:40Z")

</div>

Hi,

I have 20 bullet\_mc that are **\_visible = false;** and when users click a button which is over the invisible bullet\_mc, that particular bullet\_mc becomes visible. That all works but I would like to simplify the code if possible. This is what I’m using now:

Frame:

```auto
_root.bullet1_mc._visible = false;
_root.bullet2_mc._visible = false;
_root.bullet3_mc._visible = false;
_root.bullet4_mc._visible = false;
//etc etc

```

Button which is on top of bullet\_mc:

```auto
on (press){
    _root.bullet1_mc._visible = true;
}

on (rollOver){
    _root.bullet1_mc._visible = false;
}

```

How can I make this easier to use?
