hey guys, I have recently delved into the wonderful world of flash/actionscript.
I am trying to make a tic tac toe game, and what I have done so far is add a movie clip, that basicly acts like a button, except it has more frames (an X frame and a O frame)
In the layer that the movie clip is drawn on, I have the code
QUOTE
var snackcake=1 ;
In the movie clip Itself, I have the following code
QUOTE
on (rollOver) {
gotoAndStop(2);
}
on (press) {
gotoAndStop(3) ;
}
on (release){
if (snackcake=1){
gotoAndStop(4);
snackcake=0
}else if (snackcake=0){
gotoAndStop(5);
snackcake=1
}
}
on (rollOut){
gotoAndStop(1)
}
It works, and when you click on it, it goes to the frame with "O" in it, but the variable does not change, and when you click on it again (after rolling off), or clicking on another movie clip (with the exact same code) it does not change to "X"
what am I doing wrong?
<