PDA

View Full Version : simple photo slide show problem with event timer


laypipe79
02-20-2009, 12:58 AM
hi im trying to get this event timer to work and it just wont. can anyone tell me whats wrong with this code. thanks in advance.

stop();

var myTimer:Timer=new Timer (7000);
myTimer.addEventListener(Timer Event.TIMER, timerF);
myTimer.start();

function timerF(e:TimerEvent):void{
nextFrame();
}

Robertsson
02-20-2009, 07:47 AM
Looks like you got a space on the wrong place in the EventListener.

anticipatient
02-20-2009, 10:23 PM
I'm not sure which space he's talking about. Maybe it should be TimerEvent or timerEvent?

laypipe79
02-22-2009, 05:22 AM
thanks guys man i feel dumb about this now i was pulling my hair out over a space.... haha. really appreciate it.