Moai SDK
1.5 revision 1 (MoaiEdition)
|
Function List | |
getListener | |
setListener |
Gets the listener callback for a given event ID.
function getListener ( MOAIInstanceEventSource self, number eventID )
self | ( MOAIInstanceEventSource ) |
eventID | ( number ) The ID of the event. |
Sets a listener callback for a given event ID. It is up to individual classes to declare their event IDs.
function setListener ( MOAIInstanceEventSource self, number eventID [, function callback ] )
self | ( MOAIInstanceEventSource ) |
eventID | ( number ) The ID of the event. |
callback | ( function ) Optional. The callback to be called when the object emits the event. Default value is nil. |