Electronic Space Nintendo Rotating Header Image

Posts under ‘Flash’

Finite state machine, J’adore

I tend to program in a results-first orientation, which means I often simply don’t find the time or benefit in implementing design patterns or frameworks such as PureMVC or Robotlegs, or even less complex ones. This is not because these patterns are without merit (quite the contrary), but because in my experience the scale and [...]

Using the AS3 Dictionary utility

Edit: As some comments point out, I’ve misunderstood the exact nature of a weak dictionary, and I’ve updated the post accordingly. Thanks readers! Just a quick post to point out how freaking sweet the AS3 Dictionary utility is. They have rapidly become my favorite data structure for the simple reason that they allow you to [...]

Sessions I’d like to do at FOTB

So hey guys, voting for the Flash on the Beach elevator pitchers has started, and while I wouldn’t dream of saying I’m more deserving than any of the other guys – This year’s elevator pitch was filled to the humbling max with radical dudes and dudettes – I’m going to amuse myself by entertaining the [...]

Instance mapping singletons

So I’m a big fan of singletons; SUE ME. They’re the most rad thing ever and if you think otherwise you are a wrong person. One of the things that have bothered me about them though is the necessity for adding boring boilerplate code, such as the ubiquitous getInstance() or its younger brother, the static [...]

AIR HTMLLoaders and mouse events

Just a quick tip. If you’re wanting to listen to MOUSE_DOWN events from an AIR HTMLLoader, and want any and all mousedowns, not just HTML link clicks and the like, simply use the event’s capture phase: htmlLoaderContainer.addEventListener(MouseEvent.MOUSE_DOWN,myHandler,true) Bam, problem solved. I read some posts online about this issue and no good solutions, so here you [...]