Hi,
I have a TimerEvent set up and want to pass a variable in it. Is this possible without creating my own custom event?
public function someFunction() {
var apples:int = 200;
var timer:Timer = new Timer(1000, 1);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, myFunction);
timer.start();
public function myFunction(e:TimerEvent) {
// now I want to see variable "apples" which is not public
}
Anyway to do this? Ty :love_heart: