点击浏览该文件
点击浏览该文件代码:
for(vari=1;i<=10;i++){
_root.attachMovie("mc1","mc"+i,i);
with(_root["mc"+i]){
_x=random(550);
_y=random(400);
_width=30;
_height=30;
gotoAndStop(Number(random(10)));
}
_root["mc"+i].onMouseDown=function(){
if(this.hitTest(_root._xmouse,_root._ymouse,true)){
this.gotoAndStop(Number(random(10)));
}
};
}
/*很精练哦*/