Can anybody help with my slideshow. I am new to flash, and im studying on evening courses. I learnt this but its not working. I really need some help
var myTimer: Timer = new Timer(2000);
myTimer.start();
myTimer.addEventListener(TimerEvent.TIMER, nextPic)
function nextPic(e:TimerEvent):void {
if (currentFrame ==5)
{
gotoAndStop(1);
}
else
{
nextFrame();
}
}