Question
How to send arguments to MouseEvent called functions?
Hello,
I can't figure out how to send arguments to a MouseEvent called function.
For example, in my code, the function is called by this way:
mysymbol.addEventListener(MouseEvent.ROLL_OVER, fPopupMenu);
Then, for the function to work, I must write it like this:
function fPopupMenu(event:MouseEvent) {
trace("blah");
}
Now, if I want my function to run this kind of code:
trace(some_argument);
What kind of code should I type ?
Thanks in advance,
Gz
I can't figure out how to send arguments to a MouseEvent called function.
For example, in my code, the function is called by this way:
mysymbol.addEventListener(MouseEvent.ROLL_OVER, fPopupMenu);
Then, for the function to work, I must write it like this:
function fPopupMenu(event:MouseEvent) {
trace("blah");
}
Now, if I want my function to run this kind of code:
trace(some_argument);
What kind of code should I type ?
Thanks in advance,
Gz