Hi,
A prompt comes up to dismiss all or continue, but the The swf works perfectly. How do I correct this?
Thanks.
Error
TypeError: Error #1010: A term is undefined and has no properties.
at testONE_fla::MainTimeline/onTimer()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
LightUpSign 'array refers to instance names on stage'
import flash.utils.Timer;
import flash.events.TimerEvent;
var prog:Array = ["","prog1","prog2","prog3","prog4","prog5","prog6","prog7"];
var timer:Timer = new Timer(144);
timer.addEventListener(TimerEvent.TIMER, onTimer);
timer.start();
function onTimer(evt:TimerEvent):void {
var counting:uint = timer.currentCount % 8;
this[prog[counting]].visible = this[prog[counting]].visible ? false : true;
}
Web
When I execute the swf with HTML, there's no warning, and it works fine.