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

Flex: Custom ItemRender and CSS

Having created a custom ItemRender for a list component I needed to apply the rollover and selected styles to it. I have no idea if theres a nice way to do it, so heres the vinnie version! So in my CSS i have the following style for my list component: List { backgroundAlpha: 1; alternatingItemColors: [...]

AS3: Runtime shared library – SWFExplorer

I have never really got runtime shared libraries working quite the way I would like, though i have often found myself in a situation where they seemed a good idea in theory at least. So this looks interesting… SWFExplorer loads in an external swf and exposes the available assets as classes for easy instantiation. Its [...]