Hi everyone,
I have a function that I called from a Mouse click listener, shown below
btn_stop.addEventListener(MouseEvent.CLICK, stopVid, false, 0, true);
function stopVid(event:MouseEvent):void{
VidComp.pause();
VidComp.seek(0);
showPlay();
tmrDisplay.stop();
resetTimes();
}
I want to call the stopVid function elsewhere, but I need to pass it a parameter. So this does not work:
stopVid();
So my question is is there an empty parameter I can pass or one that will work?
I’ve tried the following:
event.Event
event.Event = null
null
Any responses will be greatly appreciated.