# A Button to Disappear a MovieClip

**URL:** <https://forum.kirupa.com/t/a-button-to-disappear-a-movieclip/303267>\
**Category:** flash\
**Created:** [January 18, 2010, 12:59am UTC](https://forum.kirupa.com/t/a-button-to-disappear-a-movieclip/303267 "2010-01-18T00:59:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shertok](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@Shertok](https://forum.kirupa.com/u/Shertok)\
**Post date:** [January 18, 2010, 12:59am UTC](https://forum.kirupa.com/t/a-button-to-disappear-a-movieclip/303267/1 "2010-01-18T00:59:45Z")

</div>

I would appreciate any help!!

I have a button and 2 MovieClips, I am trying by clicking on a button to make one of them to be alpha=0. The result I keep getting is disappearing of all.

These 2 MovieClips are on the same frame (different layers).

The code that I have:  
second\_btn. addEventListener(MouseEvent.CLICK, getSecondMovie);

function getSecondMovie(e:MouseEvent):void  
{  
gotoAndStop(“seconMovie”);  
if (getSecondMovie, “firstMovie” alpha = 0);

}

I hope I made myself clear, thanks in advance.
