Passing Arguments with Events in AS3

Passing Arguments with Events in AS3

One of the questions about ActionScript 3 that I am most often asked is how to send arguments to a listener function along with an event. To provide some background for this question, you could send argument data to a standard function like this? function showMsg(msg:String):void { trace(msg); } showMsg(“Claire”); However, in an event listener, [...]