控制事件传播 Flex

发布于 2024-10-03 10:14:07 字数 102 浏览 0 评论 0原文

你好 我有一个小问题: 有一个区域包含多个控件。 我希望最上面的控件不会捕获任何事件(或特别是鼠标事件)。 更改控件的 z-index 并不好,因为我需要它保持最顶层的控件。 有什么建议吗?

Hello
I have a small issue:
There is an area containing multiple controls one on the other.
I want that the topmost control will not catch any events(or specifically mouse events).
Changing the z-index of the control is not good since I need it to stay the topmost control.
Any suggestions ?

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

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

发布评论

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

评论(1

尴尬癌患者 2024-10-10 10:14:07

定义“区域”!你是说容器吗?或者只是屏幕的一部分?
定义“最顶层控件”!您的意思是所有这些控件的父级,指的是显示层次结构吗?或者您是否提到了控件的某些视觉方面?

如果要停止组件广播事件,可以使用 stopImmediatePropogation 在组件的事件侦听器中。另请查看文档 stopPropogation 并阅读有关三个阶段的文档Flex 事件在哪里寻找侦听器

Define "Area"! Do you mean a container? Or just a portion of the screen?
Define "Top most control"! Do you mean the parent of all these controls, refering to the display hierarchy? OR do you refer to some visual aspect of the controls?

If you want to stop a component from broadcasing events, you can use stopImmediatePropogation in an event listener on the component. Also check out docs for stopPropogation and read this documentation on the three stages of where Flex events look for listeners.

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