When you dispatch events I bet that most Flash/Flex devs don’t take advantage of the fact that dispatchEvent returns a Boolean value indicating wether or not the event has been canceled. Normally your code looks similar to this:
var event:MyEvent = new MyEvent(MyEvent.FOO);
dispatchEvent(event)
If you want to let something only happen if the event wasn’t canceled it should [...]

Recent Comments