[英]Buttons going behind external swf in as2
我正在使用預加載器加載外部swf並訪問其功能/變量,但是在加載外部swf之后,我的movieclip(其中包含用於訪問外部swf的按鈕)位於加載的swf之后,現在我希望那movieclip保持在頂部加載的外部瑞士法郎。
用於加載程序的代碼:
loadMovieNum("discocubes.swf", 0); hackMenu.dragBar.onPress = function(){ startDrag(hackMenu); } hackMenu.dragBar.onRelease = function(){ stopDrag(); } hackMenu.livesHackBtn.onRelease = function(){ if (_root.n_Level >= _root.o_CubeTutorial.length || _root.s_GameStyle == "survival") { _root.f_ShowMessage("Level Up!"); }// end if _root.f_StartGame(_root.s_GameMode, _root.n_Level + 1, _root.s_GameStyle); }
hackMenu.swapDepths(_root.getNextHighestDepth());
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.