Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIInstanceEventSource Class Reference
Inheritance diagram for MOAIInstanceEventSource:
MOAIEventSource MOAIAction MOAINode MOAIWebViewIOS MOAIBox2DWorld MOAICameraFitter2D MOAICoroutine MOAICpSpace MOAIParticleEmitter MOAIParticleSystem MOAITextBox MOAITimer MOAIAnimCurveBase MOAICameraAnchor2D MOAICameraFitter2D MOAIColor MOAIDeckRemapper MOAIFmodExChannel MOAIScriptNode MOAIShader MOAITextStyle MOAITimer MOAITransformBase MOAIUntzSound

List of all members.

Function List

  getListener
  setListener

Function Documentation

Gets the listener callback for a given event ID.


function getListener ( MOAIInstanceEventSource self, number eventID )
Parameters:
self ( MOAIInstanceEventSource )
eventID ( number ) The ID of the event.
Returns:
listener ( function )

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 ] )
Parameters:
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.
Returns:
nil