Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嘿,所以我有一个带有多个按钮的 MC,我可以拖动容器 MC,当我释放 MC 时,我想取消任何可能在此期间触发的 MouseEvent.CLICK 侦听器。mouseEnabled 和 mouseChildren 不是我当前问题的选项,谢谢。
您可以在拖动时使用选项来拦截容器的事件从移动到孩子吗?
将侦听器添加到容器,并使用捕获阶段停止这些事件的传播。