I have 2 event listener in my document class. One is for a TimerEvent.TIMER and another is for VideoEvent.COMPLETE.
Now my question is can i assign a single callback function for both of them?
vdo.addEventListener(VideoEvent.COMPLETE, completeVideo);
myTimer.addEventListener(TimerEvent.TIMER, completeVideo);
In both listeners the callback function completeVideo is same. This function’s definition is like this:
private function completeVideo(e:Event)
{
}
Its working. But is this good? Any side effect or memory load?