Greetings –
I am hoping somebody might know how to solve this actionscript for me.
Basically I have a slider panel that slides out from the side when you “RollOver” it and “RollOut”. This slider panel is a movie clip and is executed from a variable (var overBtn:Boolean=false Within this movie clip however is another movie clip button that I would like to be a toggle switch button that has an “ON” state and a “OFF” state, but the button does not work.
Can anybody help me –
(Main Time line - Frame 1)
var overBtn:Boolean=false;
if(this.overBtn){
slider.gotoAndPlay(2);}
slider.onRollOver=function(){
overBtn=true;
slider.gotoAndPlay(2);
};
slider.onRollOut=function(){
overBtn=true;
slider.gotoAndPlay(6);
};
var checked1:Boolean=false;
(Movie clip Slide Out Panel)
(frame 1)
stop();
(frame 5)
stop();
if(_parent.checked1){
btn.gotoAndStop(2);
};
(frame 10)
gotoAndPlay(1);
(Toggle Switch Inside Slide Out Movie Clip)
(frame 1)
stop();
this.onRelease=function(){
_parent._parent.checked1=true;
nextFrame();
};
(frame2)
stop();
this.onRelease=function(){
_parent._parent.checked1=false;
prevFrame();
};
Any help with this would be appreciated – Thanks
I’ve also attached the Flash file