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.
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());
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.