Actionscript

May
5

Error Embedding Fonts Across ApplicationDomains Mike Baker

Actionscript, Flash

I ran into a frustrating problem the other day while working on some client work. While attempting to register a font with Flash at runtime I was getting the following error: Error #1508: The value specified for argument font is invalid. Let me describe the situation. With the sites I’ve been working on recently we…

Apr
4

Function Memoization in Actionscript Paul

Actionscript

Lets say you’ve got a grid based game and you’re using a path finding algorithm to get from cell A to B. You’re making path finding calculations several times per frame, and its starting to become a burden on your processor. You know your path finding algorithm is reasonably optimized and you won’t get huge…

Apr
4

Problems with unloadAndStop? A Guide to Some Undocumented Caveats Mike Baker

Actionscript, Flash

Here’s the scenario; you’re writing a Flash application which loads in SWFs at runtime, uses them for some functionality, and then moves on. You want to do your due diligence and make sure the SWFs don’t stick around in memory because your application is so awesome users will be compelled to spend hours using it….

Nov
11

“Multi-threading” in Flash Mike Baker

Actionscript, Flash

More often than not, in Flash and ActionScript, user experience is everything and part of that experience includes a fluid/responsive UI. In some cases large amounts of data need to be processed as well, whether it be plotting 1000′s of points on a graph or parsing the configuration data of your sprawling <insert generic Facebook…

Aug
8

Alphanumeric Sorting in AS3 Paul

Actionscript

Sorting a list of strings that contain numbers (alphanumeric strings) can be a major headache in AS3.