quanneur
04-12-2002, 02:00 AM
Hello,
I feel like an idiot posting this but I'm horribly confused right now.
What is wrong with the following code?
var num;
num = 1;
if (num == 1) {
stop();
}
I have placed this code in the 3rd frame of my movie.
If I put the stop() command outside of the if clause then the movie stops playing in the 3rd frame as it should, but from within the if clause, as above, it doesn't work!
You might be wondering why I'd even bother writing such code in the first place.. well, I'm new to actionscript and am just playing around with things to see what works and what doesn't... i tried that and it just doesn't work although i can't figure out why for the life of me.
any help would be greatly appreciated! i've been through countless tutorials and searched the messages here to no avail....
I feel like an idiot posting this but I'm horribly confused right now.
What is wrong with the following code?
var num;
num = 1;
if (num == 1) {
stop();
}
I have placed this code in the 3rd frame of my movie.
If I put the stop() command outside of the if clause then the movie stops playing in the 3rd frame as it should, but from within the if clause, as above, it doesn't work!
You might be wondering why I'd even bother writing such code in the first place.. well, I'm new to actionscript and am just playing around with things to see what works and what doesn't... i tried that and it just doesn't work although i can't figure out why for the life of me.
any help would be greatly appreciated! i've been through countless tutorials and searched the messages here to no avail....