Call variable from TimerEvent class
Hello,
I have a Timer class and i am trying to call a variable from that TimerEvent class. But i am not sure how to do that. Do you have idea?
function contact(e:MouseEvent):void {
var world:URLRequest=new URLRequest("contact.swf");
countertime.addEventListener(TimerEvent.TIMER, counter);
countertime.start();
}
function counter(e:TimerEvent, world:URLRequest):void { // red area didnt work
loadswf.load(world);
countertime.stop();
}
How can get a var from outside to a Timer Class?