I have it working now. what I did, I make a slideshow setup (gotoAndStop(1);) in a specific frame and the code I put in for the next, didnt work.
this is was I have now, without the "turnOffAllButtons" coding:
Main Button (actions Layer):
stop();
travelButton_mc.buttonMode=true;
travelButton_mc.addEventListener(MouseEvent.ROLL_OVER, colorizetravelButton);
function colorizetravelButton(givenEvent:MouseEvent){
if (givenEvent.currentTarget.currentFrame != 50)
travelButton_mc.gotoAndPlay(2);
}
travelButton_mc.addEventListener(MouseEvent.ROLL_OUT, decolorizetravelButton);
function decolorizetravelButton(givenEvent:MouseEvent){
if (givenEvent.currentTarget.currentFrame != 50)
travelButton_mc.gotoAndPlay(21);
}
travelButton_mc.addEventListener(MouseEvent.CLICK, loadtravelLocations);
function loadtravelLocations(givenEvent:MouseEvent){
travelButton_mc.gotoAndStop(50);
travelLocations_mc.gotoAndPlay(1);
}
Inside the travelLocations_mc I have currently one button to show a slide of pictures, this is the second layer of buttoncode:
stop();
scotlandButton_mc.buttonMode=true;
scotlandButton_mc.addEventListener(MouseEvent.ROLL_OVER, colorizescotlandButton);
function colorizescotlandButton(givenEvent:MouseEvent){
if (givenEvent.currentTarget.currentFrame != 50)
scotlandButton_mc.gotoAndPlay(2);
}
scotlandButton_mc.addEventListener(MouseEvent.ROLL_OUT, decolorizescotlandButton);
function decolorizescotlandButton(givenEvent:MouseEvent){
if (givenEvent.currentTarget.currentFrame != 50)
scotlandButton_mc.gotoAndPlay(21);
}
scotlandButton_mc.addEventListener(MouseEvent.CLICK, loadscotlandInfoPage);
function loadscotlandInfoPage(givenEvent:MouseEvent){
scotlandButton_mc.gotoAndStop(50);
scotlandInfoPage_mc.gotoAndPlay(1);
}
I turned the alpha up so you can see the mc that loads
I currently have a keyframe at 60 with a code of stop(); so the travelLocations_mc will still
does this make sense?