
We’re happy to announce a new addition to the blog - Caleb Johnston has joined as a contributor. Caleb is currently a developer at Your Majesty and is a swell guy.
Check out his first post.

Much like the authors of the original Bible, we authors of the ActionScript 3.0 Bible have caught a lot of heat over discrepancies in our book. Unfortunately, working with several co-authors has its drawbacks and I am not able to take full responsibility for all of the content. If you find problems or are having trouble compiling your code, I encourage you to please visit the Wiley website to check for corrections and to fill out the errata form. The publisher will be better able to coordinate with the right people to fix any issues.
Please accept our apologies for the errors you’ve found so far.
Mims
Reader Question: Why isn’t event bubbling working
By Mims Wright | on March 18, 2008
In AS3, AS3 Bible, Authors, Flash, Programming | No Comments
A reader sent me this question. Thanks in advance to Michael:
i’m dispatching an event from a sprite after it fades in completely
dispatchEvent(new Event(Main.ENTER_SCREEN_COMPLETE));i’m trying to listen for to this event but for some reason it doesn’t get picked up when the capturing parameter is set to false.. that is for bubbling and the target phase.
This works
container.addEventListener(Main.ENTER_SCREEN_COMPLETE, screenTweenComplete, true, 0, true);This does NOT work
container.addEventListener(Main.ENTER_SCREEN_COMPLETE, screenTweenComplete, false, 0, true);Where container, is an ancestor to everything on the screen. Essentially its the the stage.
Any clues why this is happening?
Answer after the jump.
Continue reading Reader Question: Why isn’t event bubbling working…