如何在 Flex 中使用事件冒泡
你好 实际上我想知道什么是冒泡事件以及如何使用它。另外,捕获、定位和冒泡是什么概念?如果有人知道或可以提供任何示例代码进行解释,那将会有所帮助。
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是另一个由 James Ward 推荐的 Adobe 教程链接。
Here's another link to an Adobe tutorial, recommended by James Ward.
你的问题到底是什么?
简而言之,事件冒泡几乎就像这个词所说的那样:当单击按钮时,可以在按钮上监听“单击事件”,但它也会在容器堆栈中冒泡。
可以在这里找到非常好的文档: 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