as2 中外部 swf 后面的按钮
我正在使用预加载器来加载外部 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)