简体   繁体   English

Flash as3.0鼠标单击

[英]flash as3.0 mouse click

I'm trying to make a button in AS3.0, and I want it to be activated ON CLICK, not ON RELEASE.. 我正在尝试在AS3.0中创建一个按钮,但我希​​望在单击时(而不在发布时)将其激活。

For now I have used "MouseEvent.CLICK" and what it basically does is that it activates the button after I'm releasing/taking off the finger from mouse. 现在,我已经使用了“ MouseEvent.CLICK”,它的基本作用是在我从鼠标上释放手指后将其激活。 And I want it to be activating when I'm pressing on it. 我希望它在我按下时被激活。

I need this for the application on Android, the thing is that when I touch the button on the screen, it's not reacting UNTIL I take off my finger. 对于Android上的应用程序,我需要此功能,但事实是,当我触摸屏幕上的按钮时,直到我松开手指,它都没有反应。

Thanks a lot in advance! 在此先多谢!

您需要使用一个名为MouseEvent.MOUSE_DOWN的事件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM