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:

You can download the source file for Flash 8 here (1MB).

/**
* Disclaimer: This code is a sketch, and has not been polished for public release.
* If you're using it in a commercial project, you might want to clean it up first.
* If you do so, everyone would appreciate it if you post the result and provide
* a link to it in the comments (or email it to me and I will post with credit to you).
**/