By alan, on July 28th, 2005%
Note: This post has been superseded by Doh! Enumerated Types Simplified.
Perhaps I'm being foolish, but as part of a "research" project, I'm attempting to translate a class library from C++ to AS2. So I came across an enum, and I was wondering what to do with it.
A bit of googling revealed that last year . . . → Read More: From C++ to ActionScript, Chapter 1: Enumerated Types, Generated
By alan, on July 20th, 2005%
Having read several times that I ought to be using EventDispatcher, I decided to study it up and get with the program. The advantage, as I understood it, was that objects (or "guys" as they are technically known) in a running program can broadcast messages (or event notifications), and other guys can listen for those . . . → Read More: Decoupling Again: Event Mugger, and getInstance() Considered Ugly
By alan, on July 19th, 2005%
Today I found myself needing to trigger two functions in a button’s onRelease event handler. I wanted to keep the ability to install a handler function dynamically, just like you’d do when saying mc.onRelease = doSomething;, but I wanted to add the new function without displacing any previously installed handler. Also I hoped to keep . . . → Read More: Chain of Functions
By alan, on July 18th, 2005%
Back in May, Jesse Warden published a class that uses the TRACE function provided by the MTASC compiler to make nicely formatted output for Flashout: FAME Chronicles #2: TRACE (not trace) in MTASC.
I greeted MTASC and swfmill with open arms and cast flowers at their feet for liberating me from the Flash IDE, and I’m now . . . → Read More: TRACE (not trace) and the Debug Panel
By alan, on July 9th, 2005%
Here’s a class I’ve written as a way to handle multiple simultaneous tweens, and to decouple the tweening API from direct manipulation of object properties. I’ve used it to tween colors by having it change the red, green, and blue components; simply tweening the numerical color value would pass through wildly different colors along the . . . → Read More: Tween and Tweener