Scripted Black and White image

Posted On: July 28, 2009
Price: Free
Flash Player Version: 8
Swishmax Version: Swishmax 2, 2008.08.12
Comments: No comments yet

This file uses ColorMatrixFilter to create a scripted black and white image.

Download
33 downloads
 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
onFrame (1) {
    img.onRollOver = function(){
        this.useHandCursor = false;
        myFilter = new flash.filters.ColorMatrixFilter ();
        myFilter.matrix = new Array
        (0.333, 0.333, 0.333, 0, 0,
        0.333, 0.333, 0.333, 0, 0,
        0.333, 0.333, 0.333, 0, 0,
        0, 0, 0, 1, 0);
        this.filters = [myFilter];
    }
    img.onRollOut = function(){
        this.filters = [undefined];
    }
}
VN:F [1.7.0_948]
Rating: 5.0/10 (1 vote cast)