Passing a parameter as part of the fired event

Hi all,

I’m new to Corona SDK and Lua so I hope I’m not missing something very obvious.

I’d like to pass a parameter as part of the fired event but I don’t think that I can declare that when I call

[lua]xxx:addEventListener(“tap”, myFunction)[/lua]

And in myFunction, I’d like to get that parameter and use it.
Otherwise, I’m going to have to put in place a messy workaround that breaks the design.

Thanks. [import]uid: 96271 topic_id: 16871 reply_id: 316871[/import]

Doh!
I thought I had checked the documentation but obviously I hadn’t.

http://developer.anscamobile.com/reference/index/objectaddeventlistener [import]uid: 96271 topic_id: 16871 reply_id: 63202[/import]