简体   繁体   English

Flash 问题 - gotoAndPlay/gotoAndStop

[英]Flash Issue - gotoAndPlay/gotoAndStop

Don't get me wrong, I know Flash and normally I dont have problems when the programming isnt too high.不要误会我的意思,我知道 Flash 并且通常当编程不是太高时我没有问题。 Now this seems like an easy question, but I've been scratching my head for the last couple hours trying to figure out what is wrong.现在这似乎是一个简单的问题,但在过去的几个小时里,我一直在摸不着头脑,试图找出问题所在。

I'm doing this animation, and at the end, I simply want the user to click on the button for a replay for example.我正在做这个 animation,最后,我只是希望用户单击按钮进行重播。 Yesterday all was working perfect, although now, I must've added something that makes it unable to work correctly.昨天一切正常,但现在,我必须添加一些使其无法正常工作的东西。

So basically I have my frame with a stop();所以基本上我的框架有一个 stop(); and then the following code (in the button element):然后是以下代码(在按钮元素中):

    on (release)
    {
         _root.gotoAndStop("menu");
    }

I mean what's an easier thing to do in Flash right?我的意思是在 Flash 中更容易做的事情是什么?

Well right now it goes on the frame "menu" for a quarter of a second and then comes right back to the actual frame with the button.好吧,现在它在框架“菜单”上持续了四分之一秒,然后通过按钮回到实际框架。

(Flash AS2 btw, if it wasn't already obvious) (顺便说一句,Flash AS2,如果还不是很明显的话)

Anyways, let me know if you already experienced this issue, because right now I just can't seem to find whats happening.无论如何,如果您已经遇到过这个问题,请告诉我,因为现在我似乎无法找到发生了什么。

Thanks a bunch to anyone!非常感谢任何人!

Well if you wanted to replay, instead of going back to the beginning, you should have it do _root.gotoAndPlay("menu").好吧,如果你想重播,而不是回到开头,你应该让它做 _root.gotoAndPlay("menu")。

If that doesn't work then we'd need to see your fla.如果这不起作用,那么我们需要看看你的 fla。

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

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