Monthly Archives: April 2011

Converting XML into Objects – Data Marshalling in ActionScript 3

Data Marshalling is a common task that nearly every ActionScript 3 developer will face at some point; put simply it is the process of converting an Object into a data interchange format (for example XML, JSON or AMF) and likewise … Continue reading

Posted in ActionScript 3 | Tagged , , | Leave a comment

Eventual Assertions in FlexUnit 4

After a conversation with a work colleague about EventuallyMatchers in Specs (a BDD Testing Framework for Scala). The basic idea behind Eventually Matchers is that you have a condition you with to assert against which won’t be met until some … Continue reading

Posted in ActionScript 3 | Tagged | 1 Comment

Delcare Your FLEX_HOME Environment Variable in Windows

When you compile your Flash applications using ANT, you’ll often come across the fun problem of having to point to a Flex SDK to get access to the MXMLC, COMPC and ASDOC jars. One approach is to simply hard-code the … Continue reading

Posted in ActionScript 3, Windows | Leave a comment

Maven and ANT – Managing Your Flash Project’s Build Dependencies

Project build dependency management and resolution is one of the more difficult problems you’ll face as your project grows in size; however even the smallest of projects (and teams) can benefit greatly from getting automatic dependency resolution in place. So … Continue reading

Posted in ActionScript 3 | Tagged , , | 3 Comments

FlexUnit 4 assertAfter Async Helper

Update: Ah, there we go, there was a native method in FlexUnit for this! You can instead make use of Async.delayCall(). One of the things I aim for when writing unit tests is to make the test cases as easy … Continue reading

Posted in ActionScript 3 | Tagged , , | Leave a comment