concept UserEvent in category flex

This is an excerpt from Manning's book Flex on Java.
The UserEvent class should look familiar; it’s another custom event class just like the one you created for the rest of the events that your application uses. You’re creating this one separate from the other event class, because it is a separate area of concern from UI events. This will make it easier to extract the login panel to a separate library later, by keeping all of the login functionality separate from the rest of the application logic.
Listing 7.2 shows your custom UserEvent. You begin just as you did in the last event class by defining constants to describe what events you’ll be using this class for
. Next you define a data member variable to carry any data with the event if necessary
. Next you declare an overloaded constructor
and inside this is a call to the base constructor in the Event class
. Now that you’ve defined the custom event, let’s put it to use and start to create the login panel.
. Next you define a data member variable to carry any data with the event if necessary
. Next you declare an overloaded constructor
and inside this is a call to the base constructor in the Event class
. Now that you’ve defined the custom event, let’s put it to use and start to create the login panel.