PHP output and flash.net.URLLoader bytesTotal property

July 29, 2010

I hit a problem this week that had me stumped (what’s new?). So, I put on my scuba gear and dove into the code…. More after the jump…

0

Array.sortOn()

July 24, 2010

In a current AS3 project I am maintaining information about images in a custom Image class that extends Object. One of the properties of an Image instance is .orderNum. When I retrieve a list of Image instances, I store them in an Array instance. I need to sort the images within the array by the [...]

0

Programmatically embed fonts with AS3

July 21, 2010

I just learned how to embed a font into an AS3 class I am developing—without doing anything in the Flash IDE! Credit goes to this blog and this answer on stackoverflow.com. Where’s your font file? Find the location of the truetype (TTF) file for the font you are going to embed. I am using Futura [...]

0

Security Sandbox Violation Error #2121

July 19, 2010

I encountered my first Security Sandbox error while testing an AS3 project on the production server. I have a primary SWF called top.swf that loads an XML file with a list of URLs for other SWF files that will be loaded as sub-SWFs in top.swf. The XML file loads fine (it is located in a [...]

2

Preventing caching in Flash CS3 IDE

July 11, 2010

I am working on an AS3 project and developing it with the Flash CS3 IDE and FlashDevelop 3.0.6. I write all of the code in FlashDevelop and use the Flash IDE to create visual elements that would be a pain in the arse to code. When using flash.net.URLLoader to load external XML data and working [...]

0

Storing functions in an array and then calling them.

July 10, 2010

I devised a way to store functions in an array and then call them later. I used this for implementing a loading queue that calls each consecutive function when an asynchronous load process completes. var functionsArray:Array = new Array(); register(testA); register(testB); for each(var f:Function in functionsArray) { f(); } function register(f:Function):void { functionsArray.push(f); } function [...]

0