Software Design Patterns in Adobe Flex

Posted by Paul on August 18, 2010

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

[Update 2016-03-29]
Although Flash is probably dead, Flex Builder has now become Flash Builder and is on version 4.7. Whether it would compile the code in the sidebar or not I don't know but they may still serve as useful code examples of actual design pattern implementations. If you got them to compile or found them useful it'd be great to hear from you in the comments!

[Update 2016-05-18]
There's a great article on exactly the same thing for PHP at this link:
http://www.fluffycat.com/PHP-Design-Patterns/

blog comments powered by Disqus