简体   繁体   English

AS2中外部SWF后面的按钮

[英]Buttons going behind external swf in as2

I am using a preloader to load external swf and accessing its functions/ variables, but after external swf loaded my movieclip (Which contains buttons to access external swf) is staying behind the loaded swf, now I want that movieclip to stay on top of the loaded external swf. 我正在使用预加载器加载外部swf并访问其功能/变量,但是在加载外部swf之后,我的movieclip(其中包含用于访问外部swf的按钮)位于加载的swf之后,现在我希望那movieclip保持在顶部加载的外部瑞士法郎。

Code using for loader: 用于加载程序的代码:

 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM