O'Reilly logo

Adobe Flex 2: Training from the Source by Mike Labriola, Ben Elmore, Matt Boles, James Talbot, Jeff Tapper

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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>
<feature><title>Approximate Time</title>

This lesson takes approximately 2 hours to complete.

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

Media Files:

  • None

Starting Files:

  • Lesson09/start/DataEntry.mxml

  • Lesson09/start/EComm.mxml

  • Lesson09/start/as/ecomm.as

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required