Category Archives: ActionScript 3

Fluent Builder for TweenLite

After my previous post about Fluent Builders, I have been having a play with a quick example I knocked up for Jack Doyle’s excellent TweenLite, currently, it’s looking a bit like this: TweenLite syntax: TweenLite.to(box, 1.5, { x: 200, y: … Continue reading

Posted in ActionScript 3 | Leave a comment

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 , , , , , | 5 Comments

Hudson, MXMLC and Embedding Assets

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: … Continue reading

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

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

Posted in ActionScript 3 | Tagged , , , | 6 Comments

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

Posted in ActionScript 3 | Tagged , , , , | 1 Comment

Logging in ActionScript 3

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. … Continue reading

Posted in ActionScript 2, ActionScript 3 | Tagged , , | 3 Comments

Error 2048 and Flash Policy File Logging

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. … Continue reading

Posted in ActionScript 3 | 1 Comment

FlexPMD and ANT – RuleSetFactory Error

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, … Continue reading

Posted in ActionScript 3 | Tagged , | Leave a comment

Sorting Values Stored in a Dictionary

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 … Continue reading

Posted in ActionScript 3 | Tagged , , | 4 Comments

Sorting values in ActionScript 3

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 … Continue reading

Posted in ActionScript 3 | Leave a comment