addChildQuick ActionScript 3 Flash tip:
Bubbling events from eventDispatcher will not climb up the hierarchy of objects UNLESS they are “children” in the sense of the children being added to there parents by addChild property (whether it’s done my Flash/Flex in the background or manually using that property). For example, if you have a variable “myMovieClip” inside a container, you will get bubbling events out of it because it’s simply a variable defined in the container and not added as a registered child.


Author: Jonathan Dunlap
Jonathan is a veteran software architect, author of IsoHill, humanitarian, and has worked with Bigpoint Inc, CrowdStar, ePrize, and Microsoft.

Tags: