I’m using a simple conditional statement to hide and then display a set of movieclips once a counter (Number) has reached a certain value. The counter works, I traced the value, but the conditional statement does not. Here it is:
var counter:Number=0;
drape1_mc.visible=false;
drape2_mc.visible=false;
drape3_mc.visible=false;
drape4_mc.visible=false;
drape5_mc.visible=false;
if (counter>=43) {
trace("GO MARY!");
drape1_mc.visible=true;
drape2_mc.visible=true;
drape3_mc.visible=true;
drape4_mc.visible=true;
drape5_mc.visible=true;
}
I’ve tried all sorts of things: changing the >= to ==, testing different values (the only one that triggers a trace statement is 0, but obviously that’s not going to work), but nothing works! I could paste my whole code but its over 1000 lines long because it’s so simple. I’m not getting any error messages, its just not working.