主题:  关于MC的颜色一问。

Kam

职务:普通成员
等级:1
金币:0.0
发贴:83
#12003/3/17 0:12:13
移动的MC可以用setRGB来改变颜色吗!?因为我想用random在一个移动的循环中设置MC的颜色变化。

我试过好象不行:(



s22

职务:版主
等级:4
金币:10.0
发贴:1634
#22003/3/17 9:27:11
_root.createEmptyMovieClip("abc_mc",1);
abc_mc.lineStyle(100,0x99ccff);
abc_mc.moveTo(0,0);
abc_mc.lineTo(100,0);
abc_mc.lineTo(100,100);
abc_mc.lineTo(0,100);
abc_mc.lineTo(0,0);

abc_mc.onEnterFrame=function(){
    my_color=new color(this)
    my_color.setRGB(random(10000));
    this._x=random(100)
    this._x=random(100)
    }