Sunday, July 24, 2011

Flash / Flex AS3: Bubbling Events

In AS3, there will be numerous situation where you would encounter the word bubble in the creation of a new Event. So what does "bubble" means? This is how I would interpret the term "bubble". "Bubble" means that you will allow the dispatch event to move from the lowest position of a interface to move all the way to the stage.

Still confused? No worries, I have created a simple project to demo the uses of a 'Bubble' event.



Click here to view the demo.
Click here to download the source file of the demo.

Note: if you want the event to be capture by all the levels, comment away the following line of code "event.stopPropagation();".

No comments:

Post a Comment