#172003/1/15 9:02:52
                            
                                for (var i = 1; i<3; i++) {
    _root.createEmptyMovieClip("mc"+i, i);
    with (_root["mc"+i]) {
        lineStyle(2, 0x99ccff);
        beginFill(0xefefef, 100);
        moveTo(i*40, i*40);
        lineTo(i*40+50, i*40);
        lineTO(i*40+50,i*40+100)
        endFill();
    }
    _root["mc"+i].onPress=function  () {
        temp=new color(this);
        temp.setRgb(this._height*random(11000))
        trace("=========================")
        trace("name:"+this._name)
        trace("color"+temp.getRgb())
        trace("=========================")
}
}
其实一些小的问题自己多测试一下也就出来了。~
这是我写的一个每点一下就换颜色的自己COPY到FLASH里测试一下看看~
                            
                            
                                
                                    编辑历史:[这消息被s22编辑过(编辑时间2003-01-15 09:04:35)]