Hi there,
My RPG game has lot of menus during combat and while at the beginning I didn’t have problems, now the game has become more complex, and I’m having lots of trouble managing button listeners.
It seems that attempting to remove a listener from a object that has no listener attached will cause an error. Also, it seems it’s possible to add a identical listener to an object several times (I had a few errors that were caused by functions being triggered twice or more, took me a lot of time to figure that it was the listener’s fault).
So basically my questions are:
is there a way to ask if a object has listeners attached?
is there a way to clear all listeners from a object? (without destroying the object)
any help or suggestions are welcome. [import]uid: 136402 topic_id: 36298 reply_id: 336298[/import]