触摸事件VS使用ActionScript 3鼠标点击事件 [英] touch events vs mouse click events using actionscript 3

查看:178
本文介绍了触摸事件VS使用ActionScript 3鼠标点击事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想询问是否有用于或者使用鼠标点击事件或触摸点击事件,书写了手机或平板电脑(为iPhone特别是)?

Just wanted to ask if there is any advantage for either using mouse click event or touch tap events, when writing apps for mobiles or tablets (for the iphone especially)?

我知道,他们都应该工作正常,但在性能方面,是任何人都好?是否有任何事情,我应该知道选择要么当?

I know that both of them should work fine, but in term of performance, is anyone better? Are there any things I should be aware of when choosing either?

顺便说一句我使用的ActionScript3来实现应用程序。

By the way am using actionscript3 to implement the app.

推荐答案

这可能是对Adobe AIR的触摸支持,在最好的文档:

This is probably the best documentation on Adobe AIR touch support:

<一个href="http://help.adobe.com/en_US/as3/dev/WSb2ba3b1aad8a27b0-6ffb37601221e58cc29-8000.html">http://help.adobe.com/en_US/as3/dev/WSb2ba3b1aad8a27b0-6ffb37601221e58cc29-8000.html

中途通过网页它指出:

注:监听触摸和手势事件可消耗显著量的处理资源(相当于渲染每秒数帧),这取决于该计算设备和操作系统上。它往往是最好使用鼠标事件时,你实际上并不需要通过触摸或手势所提供的额外功能。

触摸的唯一好处,我会想,会是多点触摸。使用TouchEvent拥有的touchPointID它允许你跟踪每个触摸点的运动。如果你不在乎多点触摸,这听起来像鼠标事件将是一段路要走。

The only benefit of touch, I would think, would be multi-touch. The TouchEvent has a touchPointID which allows you to track the movement of each touch point. If you don't care about multi-touch, it sounds like Mouse Events would be the way to go.

这篇关于触摸事件VS使用ActionScript 3鼠标点击事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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