AS3简单的movieclip翻转问题

发布于 2024-09-13 05:15:15 字数 495 浏览 5 评论 0原文

简单的问题.. 我有 1 个 MC,buttonMode=true。 MC 内的 1 个按钮图形内嵌套有 2 个文本字段。我的问题是,当我将鼠标悬停在按钮上时,如果我将鼠标悬停在文本字段上,则滚动效果消失了......鼠标仍在按钮图形内,但滚动效果消失了......见下文..

-------------------
|   textfield a   |
|   textfield b   | <-button
|                 |
-------------------

我希望我能很好地解释自己...当我滚动到文本字段 a 或 b 时..按钮的滚动效果消失了...有什么想法吗?谢谢...

更新:

我的结构是

MC 包含 2 个文本字段和 1 个按钮... 我在 MC 时间轴内设置了 mybtn.mouseEnabled=false... 它完全杀死了我的 mybtn 翻转效果......

Simple question..
I have 1 MC with buttonMode=true. There are 2 text fields nested inside 1 button graphic inside the MC. My question is that when I roll over my mouse to my button, the roll over effect is gone if I roll over my text fields....the mouse is still inside the button graphic but the roll over effect is gone....see below..

-------------------
|   textfield a   |
|   textfield b   | <-button
|                 |
-------------------

I hope I explain myself well...when I roll over to textfield a or b..the roll over effect for my button is gone...any ideas?? Thanks...

Update:

My structure is

MC contain 2 textfield and 1 button...
I set mybtn.mouseEnabled=false inside my MC timeline...
and it killed my mybtn rollover effect completely....

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

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

发布评论

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

评论(2

云胡 2024-09-20 05:15:15

设置

mouseChildren = false

在容器上(即按钮)
或者您可以将每个 TextFiend 上的 mouseEnabled 属性设置为 false。

Set

mouseChildren = false

on the container (ie. The button)
Or you can set the mouseEnabled property to false on each of the TextFiends.

终弃我 2024-09-20 05:15:15

您可以在您的父MC 中再放置一台MC。它就像 MC 包含 2 个文本字段和 1 个按钮,也在这些文本字段的前面,按钮再放置一个 mc 并设置属性 alpha = 0;同样在AS3中设置buttonMode = true;对于这个新的MC。最后为这个 mc MOUSE_OVER 和 MOUSE_OUT 或任何你想使用的 addEventListener 。在该函数内部可以做任何你想做的事情,

我希望这对你有用:))

我为你提供了图像,但不能把它放在这里抱歉..

u can place one more mc inside your parent mc. its like MC contain 2 textfield and 1 button also on the front of these textfields and button place one more mc and set the property alpha = 0; also in AS3 set the buttonMode = true; for this new mc. And last addEventListener for this mc MOUSE_OVER and MOUSE_OUT or whatever u want to use. Inside that functions do whatever u want

I hope this can work for you :))

i got and image for u but cant place it here sorry..

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