Using Enumerators instead of Constants.

Call me lazy, but i have almost always gone with using static constants where other developers scream enum enum… ENUM!!! public static const TYPE_ONE :String = "typeOne"; public static const TYPE_TWO :String = "typeTwo";   public var type   :String = TYPE_ONE; Ok, so i hear ya, you can chill now, from now one its: [...]

Using [Inspectable] metadata tag for code completion.

If you want your custom components bindable properties to popup selectable values (i.e. true/false) via code completion in Flex Builder and also to show in the Properties Panel in design view, the Inspectable tag is your friend: [Inspectable(category="General", enumeration="true,false")] public var isCool:Boolean; If your like me and have been a bit slack on the metadata [...]

ASDoc arguments

Ran into a few “quirks” using ASDoc, so needed to tweak my arguments, firstly to include libraries, and secondly to surpress some odd errors, such as: Error: Interface method get creatingContentPane in namespace mx.core:IContainer not implemented This error was coming from an empty MXML component that extends Canvas… no code or children…. weird. So anyway, [...]

Generating ASDoc via Flex Builder

More than once I have looked for the ultimate solution to generating ASDocs, have tried ANT builds, third-party plugins etc. Little did i realise there was a much easier option, just use External Tools as outlined here. From what i can tell you can only document comments in .as files or inside the SCRIPT tag [...]

ClientException: Unsupported working copy format svn: This client is too old to work with working copy

Seen that error when using a combination of TortoiseSVN client and the Subclipse plugin for Flex Builder? For me the fix was simple, my TortoiseSVN client was version 1.6.x, however my subclipse Remote Site was pointing at http://subclipse.tigris.org/update_1.4.x, ammending that to match the TortoiseSVN version was the fix. Once updated I then just “reattached” by [...]