Saturday, November 1, 2008

Design Patterns

UML Class diagram of the decorator patternImage via WikipediaI was doing some research on some design patterns I could implement in a project I am working on. I was specifically interested in the Decorator pattern. While I was searching the interwebs, I ran across a couple of very good blogs devoted to design patterns in ActionScript. To me, finding these blogs are like finding treasure. I am very glad I ran across these. They are going into my list of RSS feeds in Google Reader. Here are the highly coveted blogs I speak of:

Flash Playa
ActionScript 3 Design Patterns

So now I am spending my Saturday night reading all the past blog entries in these blogs. I like to live on the edge. One of the blog posts that caught my eye was about the Prototype pattern. Apparently this pattern allows you to clone a deep copy of an object. I know there are classes in AS 3.0 that already have a clone method. Like the Rectangle class and all the filter classes for example. But how about being able to clone a Shape that was drawn a specific way. Normally you have to create a new Shape and redraw the graphics. Being able to clone it would be very cool.

Reblog this post [with Zemanta]

0 comments: