building flash-based websites using adobe flex - lesson 5/10
TRANSCRIPT
Agenda
● Event listening and handling
● Mouse and Keyboard events
● Other events
● Rich user interactions is a significant component of RIA.
● User interaction is achieved through event listening and handling.
● Flex is a event-driven framework. It has a solid built-in mechanism for achieving event listening and handling.
Event Listening and Handling
● Mouse events
● Click● Mouse down● Mouse up● Mouse move● Mouse out● Roll over● Roll out
● Keyboard events
● Key down● Key up
Mouse and Keyboard Events
e.g. Responding to user mouse click event
● There are many other built-in event types:
● Timer event● Result event (trigger when server respond to a request)● Fault event● ....
● Customised events is very common in mid to large application development.
Other events