Lesson 7: Creating Classes

What You Will Learn

In this lesson, you will:

• Create an ActionScript class to use as a value object

• Create ActionScript classes for a shopping cart

• Add functionality to the ShoppingCart and ShoppingCartItem classes

Approximate Time

This lesson takes approximately 1 hour and 30 minutes to complete.

Objects are the core of any object-oriented language. So far you have used classes provided for you by Adobe; however, to accomplish anything of even marginal complexity in Flex, you need to be comfortable creating your own. Objects are the realization of classes. Another way to state this is that a class is a blueprint for an object that will be created. In this lesson, you will first create several classes and ...

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.