use boolean with visible, as3
- by VideoDnd
Is there a better way to do use a use a boolean with visible? This animation
blinks 30 times and stops. It works without error, but takes a moment to load.
I would like to learn other ways of using visibility with conditionals.
var timz:Timer = new Timer(100,30);
timz.addEventListener(TimerEvent.TIMER, doIt);
var condition:Number = 5;
function doIt(event:TimerEvent):void{
trace("fire!");
if(condition=5){
box.visible = !box.visible;
}
}
timz.start();