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 [...]

Papervision: Mouse events on Collada models.

Papervision provides a number of useful object parsers for loading 3D models, including the DAE and Collada classes. Ive found the DAE class to work more consistently than the Collada one, so thats how im rolling. Listening for mouse events on the loaded model should be simple right? Turns out its quite a pain in [...]

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 [...]