ActionScript 3事件中的自定义光标不起作用 [英] custom cursor in actionscript 3 event doesn't work

查看:96
本文介绍了ActionScript 3事件中的自定义光标不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自定义光标是一个精灵. 使用它单击另一个精灵将不再触发MouseEvent.Click事件. 好像我的自定义光标在我要单击的精灵上被点击了

the custom cursor is a sprite. using it to click another sprite no longer triggers the MouseEvent.Click event. it looks like my custom cursor is being clicked on the sprite i want to click

我需要启用某些功能吗?

Is there something i need to enable?

推荐答案

customCursor.mouseEnabled = false; //as well as
customCursor.mouseChildren = false;

应该解决问题

这篇关于ActionScript 3事件中的自定义光标不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆