So here goes,
This is on my main timeline (below), as you can see it is calling individual _mc to play depending on what btn you choose (pretty straight forward). Each _mc has a stop(); at frame 2 and 10 (except buttonHandler(1) 'cause I want it to load automatically). The buttonHandler(4) is just loading a .swf, on frame 2; loadMovie(“brugmansia_gallery.swf”,1000); and on frame 11 unloadMovie(“brugmansia_gallery.swf”);
I’m using the kirupa gallery with xml and thumbnails, I don’t if that makes a difference
var btnNum;
function buttonHandler(who:Number){
if(btnNum==who)return;
_root.container_mc[“menu”+btnNum+"_mc"].play();
_root.container_mc[“menu”+who+"_mc"].play();
btnNum=who;
}
_root.buttons_mc.home_btn.onRelease = function(){
_root.buttonHandler(1);
}
_root.buttons_mc.portfolio_btn.onRelease = function(){
_root.buttonHandler(2);
}
_root.buttons_mc.favorites_btn.onRelease = function(){
_root.buttonHandler(3);
}
_root.buttons_mc.merchandises_btn.onRelease = function(){
_root.buttonHandler(4);
}
_root.buttons_mc.contact_btn.onRelease = function(){
_root.buttonHandler(5);
}
_root.buttonHandler(1);
My question is how do i get the .swf to leave when you click on a different button?