Flash CS4,将用户带回从电影中选择的内容?
我有一个名为“home_movie”的图层,稍后在结束帧上播放一个影片剪辑,我希望在动画结束时发生的事情是将用户发送回其开始位置上方的帧。这是层:home_movie,帧ID:main_movieopt,但它不起作用。
我尝试了两个组合,但没有任何帮助?
gotoAndStop ("home_movie", "main_movieopt");
没有任何反应只是停止动画并且不将它们带回菜单..
home_movie_mc.gotoAndStop ("main_movieopt");
给出错误,我不确定是否热衷于调用它,如果Flash大师可以帮助我,我将不胜感激!
*更新: 感谢你们和一点网络搜索,我终于修复了它,现在效果很好!
MovieClip(this.parent).gotoAndStop("main_movieopt");
I have a layer called "home_movie" and on that later on the end frame is a movie clip that plays, what i want to happen at the end of the animation is it to send the user back to the frame above they started at. which is layer: home_movie, frame id: main_movieopt but its not working.
I tried two combos its not working any help?
gotoAndStop ("home_movie", "main_movieopt");
Nothing happens just stops the animation and don't take them back to the menu..
home_movie_mc.gotoAndStop ("main_movieopt");
gives an error, i am not sure hot to call it, if a flash guru can help i would appreciate it!
*UPDATE:
I finlly fixed it thanks to you guys and a little web search, now it works great!
MovieClip(this.parent).gotoAndStop("main_movieopt");
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ActionScript 对图层一无所知。任何层上的帧标签只是该帧的标签。尝试 gotoAndStop("main_movieopt")
ActionScript knows nothing about layers. A frame label on any layer is simply the label for that frame. Try just gotoAndStop("main_movieopt")