有没有人知道如何在as3,flex中加载多层图像。并且应该有选项来更改每个图层的填充颜色。就像在这个网站上一样,剪贴画是按层加载的,并且可以为每个图层指定颜色
答案 0 :(得分:2)
// some displayobject
var someDisplayObject:DisplayObject = topLayer;
// tint to white 100%
someDisplayObject.transform.colorTransform = new ColorTransform(1,1,1,1,255,255,255,0);
// tint to black 100%
someDisplayObject.transform.colorTransform = new ColorTransform(0,0,0,1);