-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Flex 3 with Java

Events let a developer know when something happens within an application. Events can be triggered by either user interactions (such as keyboard or mouse clicks), or they can be system-generated to notify the user that something happened internally (for example, the application finishes loading, the application closes, and so on). The event model in Flex provides an excellent way to design loosely-coupled applications that can consume or dispatch events. This simply means that you can design components that can perform tasks and notify the outside world by broadcasting one or more custom events. The event model is broadly based on a well-known design pattern known as the observer pattern. The observer pattern allows one object, known as the observer, to watch another object, known as the subject, by registering a listener(s) for a specific event(s), and then the subject broadcasting event(s) to all subscribed observers.
For example, you might have two list components...
Change the font size
Change margin width
Change background colour