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.

Please Note:The published size as seen in the specs sidebar is due to the fact that the preview employs a library embedded image. The actual external script consumes no more than 2kb, even less once compiled into a published SWF .


CHECK OUT SOME OF MY OTHER OFFERINGS :

Event Countdown Widget V1 – $6.00 | Flash 7 and up; AS2 .
A simple but useful event countdown ticker. Great for pages under construction with a known launch date.
2-in-1 Thumb Scroller – $8.00 | Flash 8 & 9; AS2 & AS3 .
Feature-rich thumb scroller in both horizontal and vertical orientations. XML and Event driven.

A dimumurray – Dimu Designs release.


by
by
by
by
by
by