Chapter 9. Using Custom Events

<feature><title>What You Will Learn</title>

In this lesson, you will:

  • Understand the benefits of a loosely coupled architecture

  • Dispatch events

  • Declare events for a component

  • Identify the need for custom event classes

  • Create event subclasses

  • Create and use a CategoryEvent class

  • Create and use a ProductEvent class

  • Use ProductEvent to remove a product from the cart

  • Use ProductEvent to add a product to the cart

  • Use event bubbling

<feature><title>Approximate Time</title>

This lesson takes approximately 2 hours to complete.

<feature><title>Lesson Files</title>

Media Files:

  • None

Starting Files:

  • Lesson09/start/DataEntry.mxml

  • Lesson09/start/EComm.mxml

  • Lesson09/start/as/

  • Lesson09/start/managers/CategorizedProductManager.mxml ...

Get Adobe Flex 2: Training from the Source now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.