ActionScript 3.0 Design Patterns

(Chris Devlin) #1
Applying a Simple Decorator Pattern in Flash: Paper Doll | 147

Instead of paper dolls, any component could be decorated with any characteristics.


Also, you can include more than a single property or method in a decoration. In the


next section, we’ll take a look at adding additional properties with the Decorator


design pattern.


Figure 4-6. Paper doll with two different decoration sets

Free download pdf