免責聲明

Disclaimer (免責聲明)
繼續閱覽代表您接受以上的免責聲明.
To continue reading means you accept the above disclaimer.

2010年9月3日 星期五

Flash MovieClip change Color

[Q] How to change the color of a movieClip in AS3 of Flash?
[Q] 如何改變Flash "片段" 的顏色?

[Example]



[code snippet]
import flash.geom.ColorTransform;
...
var newColorTransform:ColorTransform ;
newColorTransform = new ColorTransform();
newColorTransform.color = 0x999999;
this.transform.colorTransform = newColorTransform;
...

[ref]
http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/geom/ColorTransform.html

沒有留言:

張貼留言