# Can't get \_visible to work

**URL:** https://forum.kirupa.com/t/cant-get--visible-to-work/409
**Category:** flash
**Created:** [July 16, 2002, 8:03pm UTC](https://forum.kirupa.com/t/cant-get--visible-to-work/409 "2002-07-16T20:03:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![3dron](https://avatars.discourse-cdn.com/v4/letter/3/2acd7d/32.png) [@3dron](https://forum.kirupa.com/u/3dron)
#### Post date: [July 16, 2002, 8:03pm UTC](https://forum.kirupa.com/t/cant-get--visible-to-work/409/1 "2002-07-16T20:03:55Z")

</div>

I have two background bitmaps turned into movieclips (Background1, Background2)

They are on 2 seperate layers. I then have a buttons with this code:

on(release) {  
Background2.\_visible = false;  
}

Why doesn’t Background2 hide, so I can see Background1 on the layer beneath?

I even tried giving Background2 the instance name Backg2 and changing the code to:  
on(release) {  
Backg2.\_visible = false;  
}

Neither works. What am I overlooking?

Thanks

RR

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 16, 2002, 9:48pm UTC](https://forum.kirupa.com/t/cant-get--visible-to-work/409/2 "2002-07-16T21:48:33Z")

</div>

Just a suggestion. I usually have a dynamic text field on the main stage named \_root.warn and I use it to output what should be obvious, to make sure I’m not missing a typo or relative link.

\_root.warn = Backgrnd2.\_visible.

This should at least tell you if you’re working with the right movir clip and referring to it properly.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 16, 2002, 10:15pm UTC](https://forum.kirupa.com/t/cant-get--visible-to-work/409/3 "2002-07-16T22:15:12Z")

</div>

You might also try:

\_root.Background2.\_visible=0

and

\_root.Background2.\_visible=1

Watch your caps and lowercase, too.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 17, 2002, 3:45am UTC](https://forum.kirupa.com/t/cant-get--visible-to-work/409/4 "2002-07-17T03:45:09Z")

</div>

> \*Originally posted by 3dron \*  
> **I even tried giving Background2 the instance name Backg2 and changing the code to:  
> on(release) {  
> Backg2.\_visible = false;  
> }**  
> This is exactly what you have to do ! It works, and if it doesn’t, you can try and put \_root.Backg2.\_visible = 0, but it should work as is.

pom :asian:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 22, 2002, 4:51am UTC](https://forum.kirupa.com/t/cant-get--visible-to-work/409/5 "2002-07-22T04:51:40Z")

</div>

try putting the false as 0 and true as 1, it works for me!!
