building flash-based websites using adobe flex - lesson 5/10

5

Click here to load reader

Upload: stefano-virgilli

Post on 27-May-2015

563 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Building Flash-based websites using Adobe Flex - Lesson 5/10

Building Flash-based websites using Flex

Lesson 5 – Events

Alex [email protected]

Page 2: Building Flash-based websites using Adobe Flex - Lesson 5/10

Agenda

● Event listening and handling

● Mouse and Keyboard events

● Other events

Page 3: Building Flash-based websites using Adobe Flex - Lesson 5/10

● 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

Page 4: Building Flash-based websites using Adobe Flex - Lesson 5/10

● 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

Page 5: Building Flash-based websites using Adobe Flex - Lesson 5/10

● 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