Hey Kirupa,
I’m working on a game right now, and I’m having a bit of trouble. I would like it to be if a certain Boolean, lets call it *variable1 *is equal to true, then Movieclip “disk” (which is located inside a button) goes to the next frame.
I set up the variable as such:
var variable1:Boolean = false;
I then set up a function:
function checkDisk() {
if (variable1 == false){
mybutton.mymc.nextFrame();
}
}
I put the function in an event handler, but when I tested it, and performed the action which sets variable1 equal to true, the disk stayed how it was.
I tested it on a movieclip not inside a button and it worked fine. Any suggestions?