I have a function that needs to be called when the mouse is moved over a button that has been attached to the stage. The function is called scrollZone. However, I need to pass scrollZone some parameters… but how? Whatever I do seems to result in a compile error.
btnDown.addEventListener(Event.MOUSE_OVER, scrollZone);
I want to be able to do something like this:
btnDown.addEventListener(Event.MOUSE_OVER, scrollZone(param1,param2,param3));
Can someone give me the correct syntax?
Thanks!