t0306894
|
分享:
x0
|
[讨论] 请问这一段语法
_quality = "low"; this.createEmptyMovieClip("mc", 1); mc.c = 10; mc.onEnterFrame = function() { this._parent.attachMovie("particle", "p"+this.c, this.c); this._parent["p"+this.c].onLoad = function() { this.wl = 50+50*Math.random(); this.ampl = 1; this.as = 5*Math.random(); this.sp = 3+1*Math.random(); this.bx = 200; this._y = 300; this._x = this.bx; }; this._parent["p"+this.c].onLoad(); this._parent["p"+this.c].onEnterFrame = function() { this._x = this.bx+(this.ampl*Math.sin((this._y)/this.wl)); this._y -= this.sp; this.ampl += this.as; }; this.c++; }; stop(); 有那位大大可以帮我解释这一段语法呢
|