as2 中外部 swf 后面的按钮

发布于 2025-01-05 19:56:48 字数 667 浏览 4 评论 0原文

我正在使用预加载器来加载外部 swf 并访问其函数/变量,但是在外部 swf 加载后,我的影片剪辑(其中包含用于访问外部 swf 的按钮)位于加载的 swf 后面,现在我希望该影片剪辑位于加载外部 swf。

加载器使用的代码:

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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

少跟Wǒ拽 2025-01-12 19:56:48
hackMenu.swapDepths(_root.getNextHighestDepth());
hackMenu.swapDepths(_root.getNextHighestDepth());
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文