anniebme
09-15-2008, 10:34 PM
Movie A is my big swf with controls like previousbtn, nextbtn, and closebtn. It loads MovieB. MovieB then loads MovieC.
I need closebtn to unload MovieC when pressed, and if MovieB is empty(MovieC was unloaded or not ever loaded) it will close Movie B.
Also, my nextbtn has this code(not on the button but in a frame):
nextbtn.onRelease=function(){
if(movieB.movieC==movieB.movieC._totalframes){
movieB.movieC.gotoAndStop(1);
}
else{movieB.movieC.nextFrame();
}
}
and works
My previousbtn has this code (not on the button but in a frame):
previousbtn.onRelease=function(){
if(movieB.movieC._currentframe>1) {
movieB.movieC.prevFrame();
} else {
movieB.movieC.gotoAndStop(movieB.movieC._totalfram es);
}
}
It will go to a previous frame if its greater than one. But it won't go to the last frame. ARGH!
Thank you for all your help.
I need closebtn to unload MovieC when pressed, and if MovieB is empty(MovieC was unloaded or not ever loaded) it will close Movie B.
Also, my nextbtn has this code(not on the button but in a frame):
nextbtn.onRelease=function(){
if(movieB.movieC==movieB.movieC._totalframes){
movieB.movieC.gotoAndStop(1);
}
else{movieB.movieC.nextFrame();
}
}
and works
My previousbtn has this code (not on the button but in a frame):
previousbtn.onRelease=function(){
if(movieB.movieC._currentframe>1) {
movieB.movieC.prevFrame();
} else {
movieB.movieC.gotoAndStop(movieB.movieC._totalfram es);
}
}
It will go to a previous frame if its greater than one. But it won't go to the last frame. ARGH!
Thank you for all your help.