//_______for(起始式;條件式;步進式){區塊內敘述}
function move1() //創造函式
{for (var i = 0; i < 9; i++){
//this["m" + i].y += 50;
var btn:MovieClip = this["m" + i];
btn._x=400;
btn.onRollOver = function() {
this.onEnterFrame = function(){this._x += (20- this._x)/ 8;
trace("run");
if(_xmouse<50){
move1();
delete this.onEnterFrame;
trace("stop");
}
}
}
};
};
move1();
//for基本款
{for (var i = 0; i < 9; i++){
//這裡i就是12345678
}}
No comments:
Post a Comment