Sick of inheritance? Function.Apply some __resolve.

Read the other day about Branden Hall and Samuel Wan’s Decorator/Observer/Composition pattern. Can’t remember which one, but it was from their book, Object Orienated Programming in Flash, which I’m still reading… I’m a slow reader. Granted, this may be an old topic for some peeps all awash and bored of patterns, but some of us are still trying to build a better model, build a better view, and build a better presenter. Here is my attempt at extending the DataProvider for the Model side of things.

Simple Timeout Script

Since I focus on the application “appearing” to work well by informing the user as such and not trying to hog the machine’s resources (even though I claim I never focus on efficiency), I found a good script to help me time things accordingly. The use of callbacks in Flash only goes so far because since it’s single threaded, the Flash movie will not wait to process events in enough time to show the user what is going on… unless you force it too. Read on, but scroll to the bottom if you just want the code.