Swarmastica: A Flash Game

I decided to try my hand at making a Flash game using Actionscript 3. I have mixed feelings towards Adobe technologies, but AS3 is a significant improvement over AS2. The syntax is now much closer to that of Java, with cleaner object-orientation and strict type checking. They also released their Java-based AS3 compiler under an [...]

How to Make a Generic Javascript Method Closure

The Problem
I recently found myself writing a custom Javascript API to integrate a Flash widget written by an external vendor. I was making the API object oriented, so it could be instantiated and controlled simply like:

var myWidget = new FlashWidget()
myWidget.doStuff()

Things were going well, until I realized I had overlooked a minor detail in the Flash [...]