On 5/18/15, 3:24 PM, "Michael Schmalle" <teotigraphix...@gmail.com> wrote:
>I love the way Feathers and Starling do events, they use an Event pool for
>one and have the data field on Event.
>
>So in my apps, you usually just had a class called MyEventType which has
>the constants tagged onto it. The;
>
>dispatchWithEvent(MyEventType.FOO_EVENT, true, myDataObject);
>
>Where the second parameter is bubbles.
>
>This works great, they even added functionality where the callback could
>receive the data in the second argument.
>
>What do you think about Event object pooling?

I haven’t looked into it, but I didn’t get from your explanation what the
“pool” is.  On the JS side the component set we are writing is leveraging
Google Closure Library’s events and I would imagine that anyone’s JS code
is going to leverage the browser’s native events, so IMO, anything we do
on the AS side should mirror that.

On the other hand, lots of events in Flex don’t really need the full DOM
Event capability so I am open to having two event systems if folks think
they can handle it.

-Alex

Reply via email to