# HELP! Hide/Stop MC when a second MC starts

**URL:** https://forum.kirupa.com/t/help-hide-stop-mc-when-a-second-mc-starts/325998
**Category:** flash
**Created:** [November 16, 2011, 12:30pm UTC](https://forum.kirupa.com/t/help-hide-stop-mc-when-a-second-mc-starts/325998 "2011-11-16T12:30:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![stephRP](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@stephRP](https://forum.kirupa.com/u/stephRP)
#### Post date: [November 16, 2011, 12:30pm UTC](https://forum.kirupa.com/t/help-hide-stop-mc-when-a-second-mc-starts/325998/1 "2011-11-16T12:30:55Z")

</div>

Hi,

I am quite new to Actionscript and am currently creating a page that contains a number of movie clips where when the mouse goes over the movie clips, the mc (which is a photo) enlarges on the screen.

Currently when I click a second mc the first mc is still visible and if the second photo is on a layer above the first photo then it’s enlarged image is in front of the first enlarged image. (does that make sense?)

I have tried a number of different functions to hide the current mc when a new one is clicked but I can’t find any that work. Can anyone help please?

Current script is (without any actions to hide the images as they didn’t work):

//mcBarbara  
mcBarbara.addEventListener(MouseEvent.MOUSE\_OVER, playMovie1);

function playMovie1(evt:MouseEvent):void  
{  
mcBarbara.gotoAndPlay(mcBarbara);  
}

mcBarbara.addEventListener(MouseEvent.CLICK, sendEmail1);

function sendEmail1(evt:MouseEvent):void  
{  
sendToURL(new URLRequest(“[mailto:barbara.smith@companyname](mailto:barbara.smith@companyname)” ));  
}

//mcTrev  
mcTrev.addEventListener(MouseEvent.MOUSE\_OVER, playMovie2);

function playMovie2(evt:MouseEvent):void  
{  
mcTrev.gotoAndPlay(mcTrev);  
}

mcTrev.addEventListener(MouseEvent.CLICK, sendEmail2);

function sendEmail2(evt:MouseEvent):void  
{  
sendToURL(new URLRequest(“[mailto:trevor.lynam@companyname](mailto:trevor.lynam@companyname)”) );  
}
