Flash 在嵌入按钮的边缘停止我的鼠标悬停事件

发布于 2024-09-24 18:55:18 字数 775 浏览 3 评论 0原文

大家好 感谢您的阅读,我的标题无法很好地解释。

我正在开发一个简单的 Flash 项目。在场景 1 中,我上面有一个大图像,下面有一个长滚动图像,下面是一个名为 image_slider 的影片剪辑。滚动是通过 ActionScript 3.0 鼠标悬停事件侦听器设置的。当用户向右移动鼠标时,image_slider 向左移动,当鼠标向左移动时,它向右移动。它工作得非常好。现在我希望 image_slider 的不同部分在单击时更改上面的大图像。

所以我决定将这些动作作为 image_slider 影片剪辑的一部分进行。因此,我向 image_slider 影片剪辑添加了透明按钮,并为它们添加了事件侦听器以及在 Scene1 中的不同帧处进行 goto 和 stop 的函数。这效果很好。

我的问题是现在 image_slider 不再自由移动。它确实会移动,但正如您所看到的,如果鼠标停止移动,滚动将停止在下一个按钮处。您必须再次移动鼠标才能使其继续滚动。我不知道为什么它决定这样做。有谁知道如何阻止它停在每个按钮边缘?

您可以在 http://www.luanamercy.com/FeatureExamples/flashgallery.html< 观看 Flash 影片/a>

如果我可以提供更多对您有帮助的信息,请告诉我。 也许有更好的方法来制作按钮。我是新手,所以我可能做得不好。

我很感激任何帮助。

谢谢 卢安娜

Hi All
Thanks for reading, I couldn't explain well in my Title.

I am working on a simple flash project. In Scene 1 I have a large image above and a long scrolling image below which is a movieclip called image_slider. The Scrolling is set with actionscript 3.0 mouse over event listener. When the user moves the mouse right image_slider moves left, when mouse is left it moves right. It works very nicely. Now I wanted different parts of image_slider to change the large image above when they are clicked.

So I decided to do these actions as part of the image_slider movieclip. So I have added transparent buttons to the image_slider movie clip and added event listeners for them and functions to gotoandstop at different frames in Scene1. This works well.

My problem is that now the image_slider no longer moves freely. It does move, but as you can see it if your mouse stops moving the scrolling will stop at the next button. You have to move the mouse again to make it keep scrolling. I don't know why it has decided to do this. Does anyone have any idea of how to stop it from stopping at each button edge?

You can see the flash movie at http://www.luanamercy.com/FeatureExamples/flashgallery.html

Let me know if I can provide more information that would be helpful to you.
Maybe there is a better way to do the buttons. I am a newbie so I might be doing this a bad way.

I appreciate any help.

Thanks
Luana

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

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

发布评论

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

评论(1

蓝海 2024-10-01 18:55:18

每当鼠标移到透明按钮之一上时,您基本上都会丢失 MOUSE_OVER 事件。

解决这个问题的一种方法可能是使用一个容器 MovieClip 来容纳条带和透明按钮,并让该容器监听 MOUSE_OVER 事件而不是条带本身。

You basically lose your MOUSE_OVER Event whenever the mouse goes over one of the transparent buttons.

One way to solve it could be to have a container MovieClip that would hold both the strip and the transparent buttons and get that container to listen to your MOUSE_OVER events as opposed to the strip itself.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文