# Hide/unhide movie clip

**URL:** https://forum.kirupa.com/t/hide-unhide-movie-clip/321081
**Category:** flash
**Created:** [April 10, 2011, 2:41am UTC](https://forum.kirupa.com/t/hide-unhide-movie-clip/321081 "2011-04-10T02:41:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DarkLink](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@DarkLink](https://forum.kirupa.com/u/DarkLink)
#### Post date: [April 10, 2011, 2:41am UTC](https://forum.kirupa.com/t/hide-unhide-movie-clip/321081/1 "2011-04-10T02:41:43Z")

</div>

I’d like to have one button to use for hiding and unhiding movie clips. I think I’m having an issue with my if statement. I can get the button to hide the movie clip, but can’t get it to work on unhiding the movie clip. Here’s the code:

on(release)  
{  
mc.\_visible = false;

```
if (mc._visible = false) {

```

mc.\_visible == true;  
}  
}

The code has only worked on hiding the movie clip. I just can’t make it unhide after you click the button again. Any help would be greatly appreciated!
