PDA

View Full Version : just a quick question.


Persian-Rice
08-01-2003, 04:06 PM
is this code correct?

x++;
if (x=4) {
gotoAndPlay(31);
} else {
gotoAndPlay(1);
}


pretty much what im trying to to do is play frame 1 to 30, 3 times, once it play's this aniamtion 3 times, goto frame 31

this code is placed in frame 30.

is it fine? if not can you tell me what it is and explain it? TIA

k_os
08-01-2003, 04:19 PM
first off, change the (x=4) to (x==4). you're wanting an equality check, not assignment there.

the best thing to do is try it and find out what happens. that's how i get a LOT of my stuff to work. ;)