简体   繁体   English

Flash AS 2按钮

[英]Flash AS 2 Button

I recently made a website, and the buttons look like this: 我最近创建了一个网站,其按钮如下所示:

On(release) { gotoAndPlay ("title", 1); On(release){gotoAndPlay(“ title”,1); } }

My problem is, when you click the button the first time, it goes to the correct frame. 我的问题是,当您第一次单击按钮时,它会转到正确的框架。 but when you click it again, it goes to the next frame, or to the next scene. 但是当您再次单击它时,它将转到下一帧或下一场景。 How do I remedy this? 我该如何补救? thanks! 谢谢!

The args for gotoAndPlay are scene and frame. gotoAndPlay的arg是场景和帧。 So without seeing your code I can only recommend that you 因此,在没有看到您的代码的情况下,我只能建议您

  • have more than one scene 有一个以上的场景
  • have a scene named "title" 有一个名为“ title”的场景
  • if you have a scene named "title" that it has more than a couple of frames in it, as well as something that will "stop" the timeline 如果您有一个名为“ title”的场景,其中包含多个帧,并且会“停止”时间轴

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM