Hi,
The code doesn't account for pages, it is only telling the transition clip to play. You need to add a variable to control the "pages" movieclip from the transition or simply tell it to go to the appropriate frame from the button...
Code:
myButton1.onRelease=function(){
transitionMC.play();
pagesMC.gotoAndStop(1);
}
myButton2.onRelease=function(){
transitionMC.play();
pagesMC.gotoAndStop(2);
}
myButton3.onRelease=function(){
transitionMC.play();
pagesMC.gotoAndStop(3);
}
If you want the transition to control the pages movieclip, you can create a variable to hold the page value...
currentPage=1;
... in the transition movieclip, you would need an if statement on a keyframe to check the variable and determine what to do...
Code:
stop();
if(currentPage==1){
pagesMC.gotoAndStop(currentPage);
}else if(currentPage==2){
pagesMC.gotoAndStop(currentPage);
}
play();
You would set the variable from the button code...
Code:
myButton1.onRelease=function(){
currentPage=1;
transitionMC.play();
}
myButton2.onRelease=function(){
currentPage=2;
transitionMC.play();
}
myButton3.onRelease=function(){
currentPage=3;
transitionMC.play();
}
hope it helps
Bookmarks