Using Custom Event Handlers Within Custom Classes in Flex

I had a heck of a time finding information about how to use the Flex EventDispatcher class to generate custom events. I eventually found some information about what Macromedia calls mixins. Basically, they are a way of inserting methods into a class from another class without using subclassing. The example shows how to set up the EventDispatcher class as a mixin, but doesn’t actually show how the event handling works. I am providing an example here showing a couple of the EventDispatcher methods in actual use.