做左一個play同pause既button,想做到互相切換,即係按左play後就會變左pause,按左pause又會變返play.所以兩個button位置要重疊,pause向play既上面(試過同或不同layer)
畫面開始時會自動郁,所以一開始會只出現pause button,按完pause,play就出現,但被pause蓋住既部分按唔到,只按到同pause 無重疊的部份.請問如何解決呢,swapDepths又無反應
play_btn.enabled = false;
play_btn._alpha = 0;//一開始使play隱形
pause_btn.onRelease = function() {gotoAndStop("stop");
pause_btn.swapDepths(play_btn);
pause_btn._alpha = 0;
pause_btn.enabled = false;
play_btn._alpha = 100;
play_btn.enabled = true;};
//play_btn類同