Simple parameter passing on event listener
I'm new to ActionScript and have a fairly basic question. I want an eventlistener to call a function and pass it a parameter that will send the movie to a specific frame. My code generates and invalid parameter type error. It's as follows:
TL_AboutUs_btn.addEventListener(MouseEvent.MOUSE_OVER, DropSubMenu(10)); // calls a function to drop a sub menu
function DropSubMenu(sm:number)
{
gotoAndPlay(sm);
}
Error is "1046: Type was not found or was not a compile-time constant: number."
Newbie question ... I know. Can someone correct my syntax error?
Thanks,
Sam