I wouldn't say, usually, it really depends on your overall
architecture. But for some cases, event bubbling is very nice to handle
events in a central controller class from events dispatching several
levels deep in the display list. So yes, in some of my applications, I
have event bubbling turned on in several places, and a class near the
bottom (or top, depending on how you look at it) of the display list has
all the event handlers.
Jason Merrill
Bank of America
Enterprise Technology Global Risk LLD
Instructional Technology Media
Join the Bank of America Flash Platform Developer Community
Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal GTO Innovative Learning Blog subscribe.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Sunday, July 13, 2008 1:30 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] RE: AS3 events, events
Thanks Jason. What you suggested is what I put together
during the interim.
All events bubble up to Main which then calls a method on
whatever instance it has to.
So is this the way events are usually handled in AS3. So you
bubble up an event to the highest object in the chain, and
have it handle the event?.
Makes sense I supose.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders