//ordinary. Create instance dispatchEvent(new Event(Event.COMPLETE)); //new. Use pool of Events dispatchEventWith(Event.COMPLETE);
One more point to start using custom Starling Events nor Robert Penner Signals. Actually I'm in love with Signals. But here was one problem - Starling uses custom Events but Feathers (ex-Foxhole) has used Signal. But now about one week Josh (author of Feathers) had move from Signals to Starling Events. I think it's better.
Be aware there some snake pit: Pool of objects can return you object that still used other event handler. That requires more trust to third-part handlers.
Комментариев нет:
Отправить комментарий