AS2 LUMINOSITY/GRAY SCALE UTILITY

dimumurray
AS2 LUMINOSITY/GRAY SCALE UTILITY

This is a purely code based implementation of the ubiquitous gray scale/luminosity
filter. While most common implementations of this effect tend to be timeline based
and therefore lacking in flexibility this little gem of code-driven ingenuity is
free from such constraints and open to wider application. Better yet, this utility
was built with ease of use in mind.

Near effortless two-step setup process involves simply copying the script to a
folder and referencing the script via an "#include" statement on the main timeline.
Once that's done every movieclip will support the fabulous "_grayScale" property.
"Property?" you ask. That is precisely the beauty of this utility. After the initial
setup, the effect is accessible via the "_grayScale" property on ANY movieclip
instance. Allow me to reiterate...A-N-Y MovieClip instance. Just like the standard
MovieClip properties ("_x", "_y", "_xscale", etc.). Hence forth you merely set the
property to a value between 0 and 100 inclusive. Set the property to 100 and viola!
you've got a full grayscale version of your movieclip. Furthermore you can easily
tween the property to fade from color to grayscale and back again using classic
interpolation methods or via the Tween class (or 3rd party tools like tweener).
Coupled with onRollOver/onRollOut event handlers you'll be able to implement the
colorize-on-rollover effect with relative ease. The sample preview above illustrates
this effect, the code for which comes packaged with your purchase of this versatile
utility.

In addition a class based implementation has also been provided for OOP aficionados.
All in all a great tool for any Flash developer to have in his/her arsenal.

Check out my other offerings:




A dimumurray - Dimu Designs release.
Tags:
filter | effects | gray | scale | luminosity | code-based | script-based | dimumurray | dimu designs |

Users Comments

Flash Jockey Flash Jockey

not bad! could be useful...

Posted December 20, 2008 | Reply with Quote | Report
dimumurray dimumurray

not bad! could be useful...

Could be...of course it is ;D

Posted December 21, 2008 | Reply with Quote | Report
Viewing 1-2 of 2 Comments

Post a new comment


You need to be logged in in order to post a comment. Please click here to go login and be redirected to the post form.

Buy Special Licence close

FILE PRICE

$4 Purchase

FILE INFO

Added
30 Nov 2008
Views
307 hits
Purchased
0 times
Rated 0/5
with 0 votes

TECH INFO

File Size
23kb
Resizeable
yes
Flash Version
Flash 8+
AS Version
AS 2.0
Dynamic
yes
Bookmark and Share