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” ));
}
//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”) );
}