1. Hey guys, I know this is probably a simple question but none of the online resources I have found can answer this question.

    I want to have one onEvent call in my xml i.e.

     <onEvent function="listener">
    

    then a lua function that will register events and handle them different ways according to what they happen to be.

     listen(self, event, ...)
     --handler stuff
     end
    

    The problem is, how do I get it to register events? self:registerEvent in the listen() function doesn't want to work for me.

    EDIT: What is with this "cannot parse xhtml?

    Hey guys, I know this is probably a simple question but none of the online resources I have found can answer this question.

    I want to have one onEvent call in my xml i.e.

     <onEvent function="listener">
    

    then a lua function that will register events and handle them different ways according to what they happen to be.

     listen(self, event, ...)
     --handler stuff
     end
    

    The problem is, how do I get it to register events? self:registerEvent in the listen() function doesn't want to work for me.

    You can specify an OnLoad function and register for events there.

    EDIT: What is with this "cannot parse xhtml?

    If you're including code, in particular xml code, you need to wrap it using the code button in the toolbar above the editor, for the time being.