How to listen for media.playEventSound completion events?

I don’t understand the parameter syntax in the docs, it looks like I just pass a function in the third parameter, but that doesn’t seem to be working…

http://developer.anscamobile.com/reference/index/mediaplayeventsound [import]uid: 4596 topic_id: 9190 reply_id: 309190[/import]