Hudson, MXMLC and Embedding Assets

19th July, 2010 – 4:28 pm

Quick post to help out anyone in the same headscratching situation that I just found myself in. I was in the process of getting our Flash build up and running on Hudson when I fell foul of the following error:

[java] /foo/diablo-flash/workspace/adoption_ingame/src/com/mindcandy/diablo/adoption_ingame/controller/DropDownConfigManager.as(17): col: 4: Error: unable to resolve ‘dropDownConfig.xml’ for transcoding
[java]
[java]        [...]

Continue reading Hudson, MXMLC and Embedding Assets

FDT and FlexUnit 4.1 Beta

19th June, 2010 – 5:26 pm

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 away preparing for the next milestone release of FlexUnit 4.1 which boasts some great new [...]

Continue reading FDT and FlexUnit 4.1 Beta

Reducing the size of SWF Files

15th June, 2010 – 9:20 pm

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 this case, Kb)
1. Joa Ebert’s Apparat.
Joa is an ActionScript hero (infact he won an award [...]

Continue reading Reducing the size of SWF Files

Logging in ActionScript 3

22nd February, 2010 – 9:27 pm

Logging is a fundamental part of any mid to large scale application, your application needs to be able to talk to other developers and Q&A engineers to help diagnose problems and gain insight into what’s going on under the hood. Jesse Warden recently wrote an excellent article on logging, however, my own implementation of [...]

Continue reading Logging in ActionScript 3

Error 2048 and Flash Policy File Logging

17th February, 2010 – 3:54 pm

Whenever you are working with Flash or Flex applications which make use of 3rd party feeds or data sources (such as XML or JSON), you need to be aware of how the Flash Player deals with Cross Domain security issues.
The easiest way to debug a 2048 Security Error is to enable Policy File logging in [...]

Continue reading Error 2048 and Flash Policy File Logging

FlexPMD and ANT – RuleSetFactory Error

9th February, 2010 – 9:58 pm

Just a quick post to save someone a few minutes of headscratching! I’ve just finished integrating FlexPMD, Adobe’s latest opensource offering into my ant build scripts following their documentation when I hit this error:

java.lang.NoClassDefFoundError: net/sourceforge/pmd/RuleSetFactory

Looking at my taskdef, everything appeared to be in order, it wasn’t until I searched the Adobe JIRA and managed [...]

Continue reading FlexPMD and ANT – RuleSetFactory Error

Automatically Generating a Maven POM file with ANT

26th January, 2010 – 7:20 pm

This one tripped me up for a while and doesn’t seem to be mentioned in the Maven ANT Tasks Documentation. I was working on a build process which makes use of Maven soley for deploying and versioning releases and ANT for the rest of the build. One thing I wanted to eliminate was [...]

Continue reading Automatically Generating a Maven POM file with ANT

Sorting Values Stored in a Dictionary

15th June, 2009 – 7:59 am

Looking through my incoming seaches from Google I’ve noticed that a lot of visitors to my site are trying to figure out how to sort values stored in a Dictionary. The short and simple answer is that you can’t as Dictionary’s in AS3 are meant to represent un-ordered HashMaps, however, there’s nothing to stop [...]

Continue reading Sorting Values Stored in a Dictionary

Sorting values in ActionScript 3

23rd May, 2009 – 4:05 pm

One of the next big projects at work will involve displaying a list of data to the user, this list will be generated server side and sent down as un-ordered XML, it is up to the client to sort the data and display it to the user. The system will need to be able [...]

Continue reading Sorting values in ActionScript 3

Using Dictionary Objects to Map Classes and Instances

20th March, 2009 – 12:05 am

This is a neat little ActionScript 3 trick which I’ve been using more and more of recently that I thought I would share.  The basic premise is that it allows you to use a dictionary which maps Classes to other data, the twist is that you can supply either the Class definition or an instance [...]

Continue reading Using Dictionary Objects to Map Classes and Instances