# Show/Hide movieclip

**URL:** https://forum.kirupa.com/t/show-hide-movieclip/314434
**Category:** flash
**Created:** [September 28, 2010, 3:39pm UTC](https://forum.kirupa.com/t/show-hide-movieclip/314434 "2010-09-28T15:39:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![zerokvl](https://avatars.discourse-cdn.com/v4/letter/z/4bbf92/32.png) [@zerokvl](https://forum.kirupa.com/u/zerokvl)
#### Post date: [September 28, 2010, 3:39pm UTC](https://forum.kirupa.com/t/show-hide-movieclip/314434/1 "2010-09-28T15:39:44Z")

</div>

Hi there.First i want to sorry for my bad language.I am new in AS3 and i need a little help.I just did a button and 3 movieclips.What i want? Well, when i click on the button to change the movieclips.  
click 1 = movieclip 1  
when i click again on the button it change to movieclip 2  
My problem is that i can`t make so it can change to movieclip 3.So when i click it must be something like this\>  
click 1 = movieclip1, click 2 = movieclip2, click 3 = movieclip 3 so on…  
AS3 code i use is…

```php
object1.visible=false;
hide.addEventListener(MouseEvent.CLICK, hideShow);
function hideShow(ev) {
object1.visible = !object1.visible;
object2.visible =!object2.visible;
}

```

Here i attached the .fla eg.  
Please help !!
