View Full Version : AS3; The pixelating transition
sekasi
August 22nd, 2008, 06:52 AM
Surprisingly, this is by far the most common request that I've had for free stuff. That pixelating transition I used on my previous and current portfolio site.
Soooo, to satisfy the world and to shut people up! Presto! Pixelator!
It's a reusable non destructive class that does a transition between 2 displayobjects.
Take a look!
http://www.erikhallander.com/blog/2008/pixelator-yet-another-transition-effect-for-as3.html
have fun! :beer2:
skineh
August 22nd, 2008, 10:28 AM
Great stuff, sekasi! :D I'm sure there will be a ton of downloads on this one.
Dunno if this would be useful, but I made a quick revision to this after I downloaded it and played around with it. By using the original bitmaps' transforms and applying the scaling to that, the transition can occur based on the appearance of the originals with their local transforms. That's if the user put them on the display list and transformed them first, of course. :) If not, then it still behaves as per the original.
You know I'm a nut for bitmap stuff, so this gets a big thumb's up from me. :beer2:
Edit: Note I took out the package name and import because I was looking at it all in the same folder.
johnlouis
August 22nd, 2008, 08:54 PM
thanks for sharing. I tried to recreate that effect after seeing your site, but didn't even come close. :P
REEFˇ
August 22nd, 2008, 09:10 PM
Nice, you're amazing.
hasch2o
August 23rd, 2008, 12:05 AM
Hey Erik
i was looking for that effect the other day. Perfect timing :D
Thank you very much.
one question though.
on line147 in Pixelator.as shouldn't it be:
removeEventListener(Event.ENTER_FRAME, pixelateIn);
rather then
removeEventListener(Event.ENTER_FRAME, pixelateOut);
??
other then that really nice to see a class, learned a lot by reading it.
Thanks again
Carlo
sekasi
August 23rd, 2008, 01:51 AM
Thanks guys.
Yeah it's funny skineh, that was actually something I had in mind but just couldn't be arsed. Very nice though, thanks ;)
Carlo, actually that whole row is redundant. It was a remnant from some earlier version probably.. the enter_frame gets removed further down in disposelevelone(); Leaving it there won't do anything, but removing it won't hurt either :D Nice catch though ;0
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.