[問題] 我有選單語法的問題
主要的語法是:
function mousePosition()
{
if (_xmouse <= 20)
{
MC1._x = MC1._x + bounce("right");
} // end if
if (_xmouse >= 110)
{
MC1._x = MC1._x - bounce("left");
} // end if
} // End of the function
function bounce(leftOrRight)
{
if (leftOrRight == "right")
{
go = go + (goto - MC1._x);
go = go * 0.090000;
} // end if
if (leftOrRight == "left")
{
go = go - (backto - MC1._x);
go = go * 0.090000;
} // end if
return(go);
} // End of the function
stop();
goto = 30;
backto = -80;
setInterval(mousePosition, 5);
請問大大這是用flash 6語法寫的,
然後我的問題就是如果我要把他改成用FLASH 8語法來寫的話,
我需要把語法改成怎樣呢?
請大大幫幫我~~
3Q
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.114.155.83
→
08/23 19:31, , 1F
08/23 19:31, 1F