Lesson 11: Creating and Dispatching Events
What You Will Learn
In this lesson, you will:
• Understand the benefits of loosely coupled architecture
• Dispatch events
• Declare events for a component
• Identify the need for your own event classes
• Create event subclasses
• Create and use a UserAcknowledgeEvent class
• Create and use a ProductEvent class
• Use event bubbling
• Use ProductEvent to add and remove a product
• Use the CollectionEvent to update the shopping cart total
Approximate Time
This lesson takes approximately 2 hours to complete.
In previous lessons, you worked with events from built-in objects, such as the clicking of a Button or the changing of a List. You may remember that different events all descend from the same Event ...
Get Adobe Flex 4.5 Fundamentals: 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.