Hi Everyone,
I am new with Corona and programming with lua ;)
I have one little problem I have created a button like this
and used options = {… } with defautl event = handleEventButton action
and later I try to change this event
button1.onEvent = ActionNumberTwo
but it doesn’t work (but works for properties, not methods)
I was wondering if I can change options (object or maybe in lua table for update these properties) ?
The reason why I want to do this is that I do have a few buttons with the same properties but only onEvent method is different, so I didn’t want to repeat so many code