Best way to call function from more than 1 event listener and pass parameter?
I have a button bank that allows a quick search of a video component instance named "video0". Rather than have a diff. function for each button, can I use one function and just pass to it the location I wish to seek to? I tried this, but no luck...
_root.b1.addEventListener("click", govideo.bind(this,0));
_root.b2.addEventListener("click", govideo.bind(this,100));
_root.b3.addEventListener("click", govideo.bind(this,200));
function govideo(thetime) {
_root.gotoAndPlay("video");
video0.currentTime = thetime;
$("#video0")[0].play();
}
