When I remove the ant.timer=0 if statement, the timer counts from 100 to 0. But when I include it, the timer becomes 0 right away and the code in that if statement doesn't work. The timer changes to whatever value my second if statement is.PHP Code:
ant.timer=100;
onEnterFrame = function() {
if (ant.timer>0) {
ant.timer--;
}
if (ant.timer=0) {
ant.stop();
}
}