如何在 Flex 中使用事件冒泡

发布于 2024-09-29 03:22:19 字数 80 浏览 1 评论 0原文

你好 实际上我想知道什么是冒泡事件以及如何使用它。另外,捕获、定位和冒泡是什么概念?如果有人知道或可以提供任何示例代码进行解释,那将会有所帮助。

Hi
Actually I wanted to know what is bubbling event and how to make use of it. Also, what is the concept of capturing, targeting and bubbling too? If any one knows or could give any sample piece of code for explanation that would be helpful.

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

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

发布评论

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

评论(2

薄荷港 2024-10-06 03:22:19

你的问题到底是什么?

简而言之,事件冒泡几乎就像这个词所说的那样:当单击按钮时,可以在按钮上监听“单击事件”,但它也会在容器堆栈中冒泡。

可以在这里找到非常好的文档: http://livedocs .adobe.com/flex/3/html/help.html?content=events_08.html


如果这有帮助,请投票或将答案标记为正确。谢谢

What eactly is your problem?

In short, event bubbling pretty much does what the word says: when clicking on a button that "click event" can be listened to at the button but it also bubbles up in the container stack.

Pretty good docs can be found here: http://livedocs.adobe.com/flex/3/html/help.html?content=events_08.html


If this helped, please vote or mark answer as correct. THX

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