Color Matrix Transformation : Adjust Alpha Channels
This Flash ActionScript tutorial show how to use Color Matrix Transformation to adjust the Alpha channels of image.
Flash Tutorial Content:
As we learned that the ColorMatrixFilter class lets you apply a 4 x 5 matrix transformation on the ARGB color and alpha values of every pixel on the input image to produce a result with a new set of ARGB color and alpha values.
Red, 0, 0, 0, Offset,
0, Green, 0, 0, Offset,
0, 0, Blue, 0, Offset,
0, 0, 0, Alpha, Offset
We can adjust the Alpha of Color Matrix transformation matrix by adjusting the Alpha channel of a movieclip.
1, 0, 0, 0, 80,
0, 1, 0, 0, 80,
0, 0, 1, 0, 80,
0, 0, 0, Alpha, 0
where alpha is between 0.0 and 1.0
The complete Flash Movie of this tutorial is shown as above.
Flash ActionScript Codes:
Almost all flash source codes on this website are free to download. In order to maintain our website, which includes the developement and maintenance of tutorials, we would appreciate your kind contribution by buying some source files at very small fee. Once we get reasonable amount of incentives from contribution or Advertisement sponsors, the source codes will be released for free to download.
Download Flash Source File:
Awaiting to be released.
Remarks:
This Flash Color Matrix Transformation ActionScript tutorial shows how to adjust alpha channel of flash movieclip.