Category Archives: Programming

All things code.

The quest for the elusive “N-gleton”

Sure, we’ve all heard of Singleton, the design pattern that limits the number of instances of a class to one. It’s a feel good pattern because it’s easy to use and make us feel smarter in front of our co-workers, … Continue reading

Posted in Lab, Programming, Tips, Tricks, and Hacks | 7 Comments

AS3 number to hex converter

I’ve been working on some code for converting colors lately and getting quite into bitwise operations. In one of the demos I was making, I needed a quick and easy way to see the results of a color calculation. Of … Continue reading

Posted in AS3, Lab, Programming | Tagged , , , , , , | 5 Comments

Q&A – is, as, and type conversion

A question from a reader gave me an excuse to write a huge rant about type conversions: I’m doing a little exercise in a book that makes a textfield in which each letter can only be entered once. Not very … Continue reading

Posted in AS3, Architecture, Programming, Tips, Tricks, and Hacks | Tagged , , , , , , , , | 4 Comments

AS2 EventDispatcher

I recently went back to some AS2 code and created a replica of the AS3 EventDispatcher in ActionScript 2.0. The code is based on Danny Patterson’s original EventBroadcaster code. I tried my best to match the syntax of the AS3 … Continue reading

Posted in Flash, Programming | Tagged , | 3 Comments

Downsampling Flash – Converting AS3 to AS2

I recently came across a situation where I was forced to convert a working project in Flash 9 AS3 to Flash 8 AS2. I wanted to share some of my experiences to help other weary programmers in the same predicament.

Posted in AS3, Flash, Programming, Tutorial | 15 Comments