O'Reilly logo

AdvancED ActionScript 3.0: Design Patterns by Ben Smith

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

Design Pattern Quiz

1. The common prefixes make, create, and get reflect which specific design pattern?____________________

2. Primitive operations, which are prefixed with do, are used by which pattern?____________________

3. Separate the instantiation from its assembly to promote flexibility in Listing 9-1.

Listing 9-1. AbstractClass

public class AbstractClass extends Sprite {      public function AbstractClass()      {         var someMovieClip : MovieClip = new ConcreteMovieClip();         someMovieClip.y = 25;         someMovieClip.x = 40;         someMovieClip.play();         addChild( someMovieClip );      } }

Listing 9-2. AbstractClass

Listing 9-3. FactoryMethodClass.as

4. Design a decorator that enhances a bitmap with a scrollRect ...

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