代码调试程序


P.S.
    最近在开发一个Flash组件,需要用AS代码实现渐变色(beginGradientFill)。之前我对这个方法所用到的matrix(矩阵)一直都是一知半解。我就去网上找了一些相关资料,讲得都是不太清楚!因此我自己就写了这个调试程序,也让对这方法基本了解。希望对大家能有点帮助,这也叫“用程序去学习程序”!同时我也希望那些学习AS编码,也可以学习这种思维模式,对有些不理解的方法,都可以“用程序去学习程序”来让自己明白方法实际意义!这比看那些枯燥的文字的效果好多了。
    “其实学习flash开发并不枯燥的”!

补上英文版(English)
    Recently when developing a Flash component, I needed to implement gradient fills (beginGradientFill) in ActionScript. Previously I had little understanding of the matrix used in this method. I searched on the Web and found some information, but it was all pretty unclear! So I wrote this test program to gain basic understanding of the method. I hope it’s useful for everyone; I call this “using a program to study a program”! I hope those who study AS coding can also learn this mode of thinking, and can “use a program to study a program” to understand the real meaning of other methods! That’s much better than reading dry docs.

“Learning Flash development is really not dull!”