想詢問各位大大
下面這一段
改怎麼轉成as3?
onClipEvent (load)
{
xd = this._x;
}
onClipEvent (enterFrame)
{
this._x = this._x + (xd - this._x) * 2.000000E-001;
}
我已經手動轉過了
失敗了~~
= =
自己轉的結果:
var xd = this._x;
mmm.addEventListener(Event.ENTER_FRAME, doClick1);
function doClick1(e:Event):void{
this._x = this._x + (xd - this._x) * 2.000000E-001;
}
哪裡錯了?
抓頭髮中