i’ve been having some trouble making a fade in and out function…PLEASE HELP!
movie clip ‘mcontent’ holds: frames with labels
when someone clicks a button in the scene i want the action script to fade out the movie clip and gotoAndPlay the fame with that label and then fade the mcontent movie clip back in…
here is my as3:
import flash.utils.*;
stop();
function changePage(event:MouseEvent):void{
if(event.target.name==‘aboutButton’){
//fade out mcontent
mcontent.gotoAndStop(‘about’);
//fade in mcontent
trace(‘about worked’);
} else if(event.target.name==‘menuButton’){
//fade out mcontent
mcontent.gotoAndPlay(‘menu’);
//fade in mcontent
trace(‘menu worked’);
} else if(event.target.name==‘eventsButton’){
//fade out mcontent
mcontent.gotoAndPlay(‘events’);
//fade in mcontent
trace(‘events worked’);
} else if(event.target.name==‘galleryButton’){
//fade out mcontent
mcontent.gotoAndPlay(‘gallery’);
//fade in mcontent
trace(‘gallery worked’);
} else if(event.target.name==‘contactButton’){
//fade out mcontent
mcontent.gotoAndPlay(‘contact’);
//fade in mcontent
trace(‘contact worked’);
} else if(event.target.name==‘ummbalogo’){
//fade out mcontent
mcontent.gotoAndStop(‘blank’);
//fade in mcontent
trace(‘logo worked’);
}
}