我使用Greensock補間和rollOver期間我需要禁用一些按鈕。我很確定代碼是正確的,但按鈕不禁用?Flash禁用按鈕/影片剪輯,無法正常工作?
代碼:
import com.greensock.*;
btn_skins.addEventListener(MouseEvent.CLICK, 函數(){ TweenLite.to(mtvOrange,0.25,{Y:0});} ); btn_teenwolf.addEventListener(MouseEvent.CLICK, function(){ TweenLite.to(mtvOrange,.25,{y:154.35}); } );
mtvOrange.addEventListener(MouseEvent.ROLL_OVER, 函數(){ TweenLite.to(mtvRed,0.25,{Y:30}); btn_skins.mouseEnabled = FALSE; btn_teenwolf.enabled = FALSE; btn_skins .enabled = false; trace(「hi there people」); } );
任何想法?