标签:style blog class code c java
var a:Sprite = new Sprite(); a.graphics.beginGradientFill(GradientType.LINEAR, [0xff0000,0xff0000], [1,0.3], [0, 255]); a.graphics.drawRect(0, 0, 240, 225); a.graphics.endFill(); addChild(a); a.rotation = 90; a.x = 226; aaa.mask = a; a.cacheAsBitmap = aaa.cacheAsBitmap = true; //这里是必须的,否则mask没有渐变效果,只是普通的当纯色一样。
Flash Actionscript AS3 渐变透明 mask遮罩,布布扣,bubuko.com
Flash Actionscript AS3 渐变透明 mask遮罩
标签:style blog class code c java
原文地址:http://www.cnblogs.com/kenkofox/p/3731971.html