19
Nov
Never too late to learn – Flash CS5
Thanks for my former colleague Liang, a real Flash Master(Flash Developer) I have net met before! I used to copy the latest Flash AS code from his BLOG. Yeah! Flash CS5 has already been released. http://www.flashmagazine.com/news/detail/adobe_flash_cs5_sneaks_from_fotb09/ Unfortunately, in 2009, we are all getting tired of IT related industries with own complex feelings. I wanna say to him: Never discourage after you came back to our hometown Shanghai! Although it’s really hard to find a satisfied job at there, although we’re getting older and older(in one’s 30s), we have more competitive work experiences and professional skills in this area for long long time. It’s never too late/old to learn!
Flash AS code – ColorMatrix effects
Turn the movieclip of picture to be in black:
MovieClip.filters = [new ColorMatrixFilter([0.3, 0.59, 0.11, 0, 0, 0.3, 0.59, 0.11, 0, 0, 0.3, 0.59, 0.11, 0, 0, 0, 0, 0, 1, 0])];
Turn the movieclip of picture to be the initial value:
MovieClip.filters = [new ColorMatrixFilter([1, 0, 0, 0, 0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0])];
Here is the official sample from Adobe:
[kml_flashembed movie="http://www.adobe.com/devnet/flash/articles/matrix_transformations/ColorMatrixDemo.swf" width="500" height="300" wmode="transparent" /]



