Adobe Flex
Design Patterns: Elements of Reusable Object Oriented Software
It's been well over 10 years since "Design Patterns: Elements of Reusable Software" was first published by the so called "Gang of Four" an allusion to the "Greek Gang of Three" who were also concerned with logic.
However there still seems to be a lot of confusion over exactly what design patterns actually are, and that's before we even get in to the highly esoteric vocabulary with names such as the Abstract Factory, Singleton, Decorator, Facade, Flyweight, Memento and Chain of Responsibility to name a few!
So, we've created some code examples (see sidebar) of various design patterns in Adobe Flex 3.
The examples are mostly ActionScript 3 and MXML, Macromedia's XML markup, so they can be viewed in any normal text editor. To compile and run the code, and to view with syntax highlighting you'll need Adobe's Flex Builder 3. A free trial is available here:
http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3email
Creational Patterns
AbstractFactory.zip
Builder.zip
FactoryMethod.zip
Prototype.zip
Singleton.zip
Structural Patterns
Adapter.zip
Bridge.zip
Composite.zip
Decorator.zip
Facade.zip
Flyweight.zip
Proxy.zip
Behavioral Patterns
ChainOfResponsibility.zip
Command.zip
Interpreter.zip
Iterator.zip
Mediator.zip
Memento.zip
Observer.zip
State.zip
Strategy.zip
TemplateMethod.zip
Visitor.zip