Branching Experiment: Flaming Hairball

After having my creative mojo refueled at Flash on the Beach, I’ve started playing around with some of my old experiments again. One of my favourite older experiments is my vein logic – it’s just such a beautiful example of recursion, and can be applied to so many things (like veins, vines, trees, more trees, and lightning) – so I decided I would rewrite and rearchitect it for ActionScript 3.

I barely managed to lay the groundwork for the new architecture before I got sidetracked by the file I was using to test it, and wound up building what I will affectionately call the Flaming Hairball.

You can check it out below.

Continue reading →

SPL Tricks: Powerful Multi-Purpose Text Highlighter

One of the things I put a lot of work into for Spelling Plus Library was architecting it in a very modular, extendable fashion. The main reason for this was to allow developers to use it in the way that makes most sense for their projects. For example, Buzzword only uses the SpellingDictionary class, which handles all of the spell checking and spelling suggestion logic, and the WordListLoader, but manages the user interface themselves.

A secondary benefit is that many of the classes are very useful on their own. The best example of this is the TextHighlighter class that forms the core of the SPL SpellingHighlighter. It is a very powerful class for finding and highlighting words in a text field in real time.

It includes a ton of features, including support for manual selections, multi-line highlights, smart targeting, autoupdating on change and scroll, interactive highlights, and more. It will be gaining even more functionality in the upcoming 1.1 release of SPL.

Continue reading →

Squeeze Effect Source Code

One of the limiting factors for how much code I release has always been the need to clean up and refactor the code before I make it public. After thinking about it a bit, I decided in the interest of sharing more with the community I would start releasing some of my simpler “proof of concept” type experiments without polishing them first, starting with this one.

A little over a year ago, I put together a simple OSX-esque squeeze effect to transition in dialogs in one of our projects. It never saw the light of day, but I stumbled on the proof of concept yesterday and thought I should share it. It uses DisplacementMapFilter and a simple tween.

Here’s what it looks like:

Continue reading →