SlideShare a Scribd company logo
1 of 5
Download to read offline
Building Flash-based websites using Flex

           Lesson 5 – Events




                 Alex Goh
                 info@alekkus.com
Agenda

●   Event listening and handling

●   Mouse and Keyboard events

●   Other events
Event Listening and Handling

●   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.
Mouse and Keyboard Events

●   Mouse events

    ●   Click         e.g. Responding to user mouse click event
    ●   Mouse down
    ●   Mouse up
    ●   Mouse move
    ●   Mouse out
    ●   Roll over
    ●   Roll out

●   Keyboard events

    ●   Key down
    ●   Key up
Other events

●   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.

More Related Content

More from Stefano Virgilli

Adobe Flex - Foundation to Advanced (Bundle) [A-FX-103] Frameworks
Adobe Flex - Foundation to Advanced (Bundle) [A-FX-103] FrameworksAdobe Flex - Foundation to Advanced (Bundle) [A-FX-103] Frameworks
Adobe Flex - Foundation to Advanced (Bundle) [A-FX-103] FrameworksStefano Virgilli
 
All about colour - by Stefano Virgilli
All about colour - by Stefano VirgilliAll about colour - by Stefano Virgilli
All about colour - by Stefano VirgilliStefano Virgilli
 
Blending modes presentation
Blending modes presentationBlending modes presentation
Blending modes presentationStefano Virgilli
 
Building Flash-based websites using Adobe Flex - Lesson 4/10
Building Flash-based websites using Adobe Flex - Lesson 4/10Building Flash-based websites using Adobe Flex - Lesson 4/10
Building Flash-based websites using Adobe Flex - Lesson 4/10Stefano Virgilli
 
Building Flash-based websites using Adobe Flex - Lesson 1/10
Building Flash-based websites using Adobe Flex - Lesson 1/10Building Flash-based websites using Adobe Flex - Lesson 1/10
Building Flash-based websites using Adobe Flex - Lesson 1/10Stefano Virgilli
 
Think again - Demystify graphic design
Think again - Demystify graphic designThink again - Demystify graphic design
Think again - Demystify graphic designStefano Virgilli
 

More from Stefano Virgilli (8)

Cinematography c ot-102
Cinematography c ot-102Cinematography c ot-102
Cinematography c ot-102
 
Designer vs Client
Designer vs ClientDesigner vs Client
Designer vs Client
 
Adobe Flex - Foundation to Advanced (Bundle) [A-FX-103] Frameworks
Adobe Flex - Foundation to Advanced (Bundle) [A-FX-103] FrameworksAdobe Flex - Foundation to Advanced (Bundle) [A-FX-103] Frameworks
Adobe Flex - Foundation to Advanced (Bundle) [A-FX-103] Frameworks
 
All about colour - by Stefano Virgilli
All about colour - by Stefano VirgilliAll about colour - by Stefano Virgilli
All about colour - by Stefano Virgilli
 
Blending modes presentation
Blending modes presentationBlending modes presentation
Blending modes presentation
 
Building Flash-based websites using Adobe Flex - Lesson 4/10
Building Flash-based websites using Adobe Flex - Lesson 4/10Building Flash-based websites using Adobe Flex - Lesson 4/10
Building Flash-based websites using Adobe Flex - Lesson 4/10
 
Building Flash-based websites using Adobe Flex - Lesson 1/10
Building Flash-based websites using Adobe Flex - Lesson 1/10Building Flash-based websites using Adobe Flex - Lesson 1/10
Building Flash-based websites using Adobe Flex - Lesson 1/10
 
Think again - Demystify graphic design
Think again - Demystify graphic designThink again - Demystify graphic design
Think again - Demystify graphic design
 

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

  • 1. Building Flash-based websites using Flex Lesson 5 – Events Alex Goh info@alekkus.com
  • 2. Agenda ● Event listening and handling ● Mouse and Keyboard events ● Other events
  • 3. Event Listening and Handling ● 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.
  • 4. Mouse and Keyboard Events ● Mouse events ● Click e.g. Responding to user mouse click event ● Mouse down ● Mouse up ● Mouse move ● Mouse out ● Roll over ● Roll out ● Keyboard events ● Key down ● Key up
  • 5. Other events ● 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.