0
votes

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);
}

1

1 Answers

0
votes
hackMenu.swapDepths(_root.getNextHighestDepth());