SpArKy
27-06-08, 10:59
I am trying to reset a counter in flash so that it does not longer display this;
allCorrect =0;
// check if all answers
// are correct
_root.onEnterFrame= function(){
if(_root.allCorrect==7){
_root.endComment = "Congratulations, you got them all correct!";
}
}
I put this code into the Reset button, however it does not seem to be working;
on (release) {
if(count == 7){
count = 0;
}
_root.answer1="";
gotoAndPlay(15);
}
allCorrect =0;
// check if all answers
// are correct
_root.onEnterFrame= function(){
if(_root.allCorrect==7){
_root.endComment = "Congratulations, you got them all correct!";
}
}
I put this code into the Reset button, however it does not seem to be working;
on (release) {
if(count == 7){
count = 0;
}
_root.answer1="";
gotoAndPlay(15);
}