ActionScript 3.0 Design Patterns
140 | Chapter 4: Decorator Pattern Figure 4-5 shows what you should see in your Output window when you test the movie. To unders ...
Applying a Simple Decorator Pattern in Flash: Paper Doll | 141 Applying a Simple Decorator Pattern in Flash: Paper Doll You can ...
142 | Chapter 4: Decorator Pattern All of the concrete decorators will be subclassed for this class. The Concrete Classes Once t ...
Applying a Simple Decorator Pattern in Flash: Paper Doll | 143 If you want to create more concrete component classes, all you ne ...
144 | Chapter 4: Decorator Pattern Example 4-12. Bow.as package { public class Bow extends Dresser { private var model:Model; pu ...
Applying a Simple Decorator Pattern in Flash: Paper Doll | 145 All si xdecorations can be used in any combination you want with ...
146 | Chapter 4: Decorator Pattern Once you’ve got everything ready to go, you’ll need some GIF files. The model (con- crete com ...
Applying a Simple Decorator Pattern in Flash: Paper Doll | 147 Instead of paper dolls, any component could be decorated with any ...
148 | Chapter 4: Decorator Pattern Decorating with Deadly Sins and Heavenly Virtues Action gaming pits different kinds of heroes ...
Decorating with Deadly Sins and Heavenly Virtues | 149 Adding Properties and Methods Up to now, we’ve used a single string varia ...
150 | Chapter 4: Decorator Pattern Examples 4-18 and 4-19 provide the concrete components forDickandJaneclasses. Each class just ...
Decorating with Deadly Sins and Heavenly Virtues | 151 Decorating with Multiple Properties Multiple properties and methods are n ...
152 | Chapter 4: Decorator Pattern If you break down Example 4-21, the first part looks exactly like the previous exam- ples. AC ...
Decorating with Deadly Sins and Heavenly Virtues | 153 } override public function evil( ):Number { return +/-00 + components.evi ...
154 | Chapter 4: Decorator Pattern Example 4-23. Hope.as package { public class Hope extends Decorator { private var components: ...
Decorating with Deadly Sins and Heavenly Virtues | 155 Example 4-25. Compassion.as package { public class Compassion extends Dec ...
156 | Chapter 4: Decorator Pattern Example 4-27. Diligence.as package { public class Diligence extends Decorator { private var c ...
Decorating with Deadly Sins and Heavenly Virtues | 157 Deadly sins Example 4-29. Rage.as package { public class Rage extends Dec ...
158 | Chapter 4: Decorator Pattern Example 4-31. Prejudice.as package { public class Prejudice extends Decorator { private var c ...
Decorating with Deadly Sins and Heavenly Virtues | 159 Example 4-33. Dogmatisms.as package { public class Dogmatisms extends Dec ...
«
4
5
6
7
8
9
10
11
12
13
»
Free download pdf