頁:
[1]
flash新手 AS1轉AS3 程式碼 順便附上解釋 方便易懂 謝謝各位!!
本帖最後由 ian9356337 於 2012-10-31 11:05 PM 編輯xpos = ball._x;
ypos = ball._y;
ball._visible = 0;
gap = 25;
extraBorder = 15;
leftBoxVel = 4;
scritta.onRelease = function() {
xspeed = Math.random()*3+3;
yspeed = Math.random()*1+3;
ball._x = xpos;
ball._y = ypos;
ball._visible = 1;
scritta._visible = 0;
right.startDrag(true, right._x, 28, right._x, 138);
};
ball.onEnterFrame = function() {
this._x += xspeed;
this._y += yspeed;
if (this._x>...<div class='locked'><em>瀏覽完整內容,請先 <a href='member.php?mod=register'>註冊</a> 或 <a href='javascript:;' onclick="lsSubmit()">登入會員</a></em></div><div></div>
頁:
[1]