Protect your ActionScript code with SWF Protector

Posted on 22nd July 2010 in ActionScript, Developer tools | No Comments »

Even though the point of code obfuscation will always remain arguable, it may sometimes be a good idea to mess around a bit and make your ActionScript code harder to steal. The following review will highlight the features of SWF Protector, analyse the code and impact on SWF file size as well as performance. Read the rest of this entry »

Fixing the security sandbox issue in FDT 4 Milestone 2

Posted on 26th May 2010 in ActionScript, Developer tools | 3 Comments »

FDT pure coding comfortDespite the fact that M2 isn’t the final release of FDT 4 and even the feature sets of Pure, Pro and Enterprise versions are yet to be determined, it’s a solid Flash development tool already.

Even so one of the first issues to tackle with on a Mac is the FDT 4 Debugger throwing back Flash sandbox violation. Read the rest of this entry »

ActionScript 3 lacks functionality for visible bounds of DisplayObject

Posted on 3rd May 2010 in ActionScript | No Comments »

The following has already been listed as a feature request at Adobe Bug System and is only to illustrate the situation which is basically the lack of badly needed functionality in ActionScript 3.

The problem relates to flash.geom.PerspectiveProjection introduced with the load of native 3D in Flash 10. Read the rest of this entry »

Embed system fonts with Flex SDK

Posted on 6th March 2010 in ActionScript | 1 Comment »

This little ActionScript 3 snippet will convert the system font to a SWF font instance that you can use in your AS3 project. Read the rest of this entry »

Enable Quick Look of ActionScript and Flex files on Snow Leopard

Posted on 4th February 2010 in ActionScript, Developer tools | 3 Comments »

Having Adobe CS4 and Mac OS X Snow Leopard both installed is very likely to mess up Quick Look of Flash ActionScript (.as) and Flex (.mxml) files. Most inconvenient for those used to browsing through the files and looking into them by just hitting the Space key. Read the rest of this entry »

ActionScript 3 Array constructor vs Array literals benchmark

Posted on 16th November 2009 in ActionScript | No Comments »

By the latest Coding Convention of ActionScript 3, the usage of the Array constructor is only encouraged for size allocation, e.g. var myArr:Array = new Array(2); for an array with 2 elements in it. In all other cases literals should be used, e.g. var myArr:Array = [];

Read the rest of this entry »

Date formatting prototypes for ActionScript 2

Posted on 3rd January 2008 in ActionScript | 1 Comment »

Here are 2 prototypes that you can use to convert a regular ISO-formatted date into a Flash Date object and then, if necessary, to a regular European date format. Both for ActionScript 2. Read the rest of this entry »

Importance of proper exception handling

Posted on 14th December 2007 in ActionScript | No Comments »

Too many developers cut on error handling by providing a very raw framework that is incapable of handling exceptions. It looks like it’s saving a day but in a long run it’s probably going to cost badly.
Read the rest of this entry »

String.tease method

Posted on 13th December 2007 in ActionScript | No Comments »

Ever thought of creating a teaser text of some longer string in Flash? For programmers still coding in ActionScript 2, here’s the piece of code to do it. Read the rest of this entry »

FileReference.postData property for file uploads

Posted on 6th December 2007 in ActionScript | 2 Comments »

On Flash file uploads, instead of populating your session ID in URL, you might use a specific property of the FileReference class. Read the rest of this entry »