Archive for the ‘ActionScript 3’ Category

Hudson, MXMLC and Embedding Assets

Monday, July 19th, 2010

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 ...

FDT and FlexUnit 4.1 Beta

Saturday, June 19th, 2010

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 ...

Reducing the size of SWF Files

Tuesday, June 15th, 2010

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 ...

Logging in ActionScript 3

Monday, February 22nd, 2010

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, ...

Error 2048 and Flash Policy File Logging

Wednesday, February 17th, 2010

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 ...

FlexPMD and ANT – RuleSetFactory Error

Tuesday, February 9th, 2010

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 ...

Sorting Values Stored in a Dictionary

Monday, June 15th, 2009

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, ...

Sorting values in ActionScript 3

Saturday, May 23rd, 2009

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 ...

Using Dictionary Objects to Map Classes and Instances

Friday, March 20th, 2009

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 ...

MoshiMonsters.com Homepage Redesign

Tuesday, March 10th, 2009

As some of you may know, I am currently working for MindCandy as an ActionScript 3 developer hacking away on Moshi Monsters - a safe, online world for kids to learn and play.  This week is a very proud one for myself as the homepage redesign which I worked on ...