-
Recent Posts
Recent Comments
Archives
- January 2012
- August 2011
- June 2011
- April 2011
- March 2011
- October 2010
- July 2010
- June 2010
- February 2010
- January 2010
- June 2009
- May 2009
- March 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- July 2008
- June 2008
- May 2008
- February 2008
- January 2008
- November 2007
- August 2007
- July 2007
- May 2007
- April 2007
Categories
Meta
Tag Archives: actionscript
Revisiting the Builder Pattern in ActionScript for Immutable Models
A while back I made a post on using the Builder Pattern to create Fluent Constructors – the principle being that instead of having a Model object with a bajillion (in practice, more than 3) arguments, you make use of … Continue reading
Builder Pattern in ActionScript – Fluent Constructors
How many times have you come across a class which looks like this: package nutrition.model { public class NutritionFacts { private var _servingSize : uint; // (mL) required private var _servings : uint; // (per container) required private var _calories … Continue reading
Posted in ActionScript 3
Tagged actionscript, builder, construction, deisgn patterns, encapsulation, oop
5 Comments
FDT and FlexUnit 4.1 Beta
FlexUnit 4 was a massive leap forward for Test Driven ActionScript 3 Development allowing us to make use of metadata annotations, hamcrest and easier asynchronous testing and I was delighted to discover that the flexunit.org team are still busy working … Continue reading
Reducing the size of SWF Files
Over at Moshi HQ, we’ve spent a fair bit of time looking at how to reduce the size of the SWFs we publish; here’s a quick checklist to rattle through to get the most bang for your buck (or in … Continue reading
My Development Environment.
I spend most of my development time sat in Eclipse, I find it funny (or maybe slightly alarming) that only four moths ago I had never ventured near an Integrated Development Environment and spent a lot of time toiling away … Continue reading
The State of Logging in ActionScript 3
I’ve been looking at Logging Frameworks in ActionScript 3 over the past few days and I’m afraid that I’m slightly at a loss as for which approach is the best to take. There are a few Logging Frameworks out there, … Continue reading
Typesafe Enums in ActionScript 2
Typesafe Enums are perfect when you want to get the message across loud and clear, with no room for error. The classic use for an Enum is handling events, to give some context I’ll demonstrate how you could handle events … Continue reading
Actionscript – Loading Acute and UTF-8 Characters from XML into Dynamic Text with Flash
Writing flexible applications in Flash is easy, (/me points in the direction of my XML Configuration Class) and there’s few reasons why all your text strings should not be read in at run time to allow for easy internationalization. However, … Continue reading
ActionScript 2.0 Configuration Class
This is an update to my original Actionscript 2.0 Configuration Class which I wrote back in February. It features a new access method for reading and writing values and allows you to load in external XML configuration documents with an … Continue reading
Accurate Timing in ActionScript
@Update: 23rd May 2008. Small refactoring of the code without changing the interface, the .zip archive now includes a working example. There are many things that require timing when programming, for me the challenge is accurately timing how long a … Continue reading