search
date August 22nd, 2008  written by E.Hallander  categories Actionscript 3.0
pixelation

I am not naive enough to believe I originally created this effect. As with anything, there always seems to be someone somewhere that did it sometime before :). Either way, I made a version of it for my previous site in AS2 and it came with me when I updated the site.

Ever since that first site there’s been a somewhat steady flow of questions regarding it. I vaguely remember writing a AS2 tutorial for it on gotoandlearn and I get a lot of mails regarding it.

So, I figured I’d take advantage of AS3’s massive improvements and create a transition class with the same effect. It’s hard to give it a specific name, but I’ve always called it the “pixelating transition“. You’ll understand when you check it out. Go ahead tough guy. Click the header!

So, in short, this class will take two displayobjects and create a transition between the both. The DisplayObjects don’t necessarily need to be on the Display List, in fact it’s probably wiser to use the Pixelator as an intermediary. You set it up with two clips and add it to the display list. The class itself will do nothing but setup and display the first picture. You can later call a trigger that makes it transition between the first and second image/object. Simple as that.

If you later need to keep transitioning, there’s also a reconfigure command that allows you to re-setup the class while maintaining the visible appearance. In other words, It’s just really simple! :)

public function Pixelator(_source:DisplayObject, _dest:DisplayObject, _ct:int = 125)
//ct is the cutoff, or how big you want the pixels to become. Larger = bigger.

 

Download here (350Kb) (3537 downloads)



Feel free to check out the feed or leave a trackback from your own site.

32 Responses to “Pixelator - Yet another transition effect for AS3”

Post A Comment

Site served by; centOS5, mysql 5.1 & php 5.2.6
'If it ain't broken, it must at least be due for a service?'