How to change alpha of an array?
It's me again.
I am trying to dynamically change the alpha value of a set of movieclips on a timer. The timer works but I get an error message from the function.
This is the error:
TypeError: Error #1010: A term is undefined and has no properties.
at piedacoulisse_timer_fla:MainTimeline/zoom/piedacoulisse_timer_fla:onTime()[piedacoulisse_timer_fla.MainTimeline::frame1:124]
at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
at flash.utils::Timer/flash.utils:Timer::tick()
This is the code:
var txt:Array = ["txt1","txt2","txt3","txt4","txt5"];
var flashTimer:Timer = new Timer(3000,5);
flashTimer.addEventListener(TimerEvent.TIMER, onTime);
flashTimer.start();
var frame:int = 0;
function onTime(evt:TimerEvent):void{
zoomIn.slider_mc.txt[frame].alpha = 1; \\ line 124
frame ++;
}
Can anyone tell me what the problem is and how to fix it?