MVC App Template

June 26th, 2009

It just so happens that I’m speaking tonight to the FlashPDX user group here in Portland. I’ll be presenting my app template, and I just realized that I’ve never actually blogged about the latest version.

My app template is a relatively light-weight MVC implementation that is very similar to Cairngorm. But, my framework works equally well in Flash applications as it does in Flex.

If you’re interested in my MVC framework, check out this
mailing list post, or jump straight to the download:
bumpslide_apptemplate_mvc_20090524.zip

If you’d like to hear more about it, you can see me present in person tonight (Friday, June 26) at 7pm PDT (doors open 6:30) at Fashionbuddha Studio, 123 NW 2nd Ave. Suite 206, Portland, OR 97209.

We’ll also be broadcasting via a Connect session. So, login around 7pm west coast time.
http://experts.na3.acrobat.com/flashpdx

See you tonight.

JSFL Class Generator

March 7th, 2009

Back in the AS2 days, I created a JSFL script that would trace out the code for a MovieClip class based on items on the timeline. This eventually got ported to AS3, and it had become an essential part of my day-to-day workflow. However, there were some critical shortcomings. One was that it couldn’t identify instances of other custom components in your library. It just typed them as MovieClip. And, most importantly, (due to the limitations of JSFL at the time), it couldn’t actually output a real class file.

I have now updated this script, and my new class generator has much better timeline instance introspection and it actually creates the class files for you. To install, download Bumpslide Component Class Generator JSFL File and put it in your Flash commands folder. This will create a new entry in your Commands menu called “[Bumpslide] Generate Component Classes”.

Read the rest of this entry »

Data Binding for Flash

March 4th, 2009

I was talking to my parents on the phone last Sunday as I do most Sundays, and my dad said that he had never read my blog until just a few days ago. He was impressed, he said, because he had absolutely no idea what I was talking about. “It’s like another language from another planet.” Granted, the things I often write about are usually the most arcane and technical things I do. But, I think it’s time to bring it down a notch and write about the simple things that make writing code for Flash more enjoyable. For me, one of the nicest is data binding. This post is an introduction to the concept of storing application state in a Model Locator and using my BindableModel as a way to bind that data to view components.

Read the rest of this entry »

Quadtree Visualization

January 12th, 2009

I’ve been doing some work lately with the physics engine that is in the Flare data visualization library. This is a very simple little engine that just deals with particles, forces, and springs. The Flare physics package does not include any rigid body mechanics or collision detection, since it was built as a tool for data visualization as opposed to simulation. For the purpose of things like tag clouds and force-directed layouts, this is just the trick. I can’t speak much for the rest of the Flare library, as so far, it really hasn’t met any of my needs. But, definitely check it out. There is great code here.

Read the rest of this entry »

Bumpslide AS3 RPC Classes

November 19th, 2008

I have been refactoring my service loading application code recently, and I am moving away from my URLLoaderQueue in favor of classes that represent individual requests. After doing a few Flex projects, I really like the IResponder interface, and when using that in conjunction with the Command pattern, it just makes sense to have a URL request implementation that can use this responder interface. Much of this code is inspired by code in the Flex framework, but note that there are no Flex dependencies here. This code is designed for those that like the idea of IResponder and the Flex service classes but don’t want to get bogged down in the Flex.

Read the rest of this entry »