[]关于event中只读属性touches,问题,求解

主类:
package
{
import laya.display.Text;
import laya.events.Event;
import laya.webgl.WebGL;

public class DemoTouch
{
public function DemoTouch()
{
Laya.init(800, 600, WebGL);
Laya.stage.bgColor = "#232628";

var txt:Text = new Text();
txt.text = "hello";
txt.color = "#FF00FF";
txt.width = 100;
txt.height = 100;
txt.x = 200;
txt.y = 100;
txt.fontSize = 50;
txt.on("click", this, onFunc);
Laya.stage.addChild(txt);
}

private function onFunc(e:Event):void
{
var arr:Array = e.touches;
console.log("e.touchId="+e.touchId);
console.log("arr[0]"+arr[0]);
}
}
}
 
输出为:
 

QQ图片20170519202110.png

 
 
不明白touches属性数组里面存储的什么类型的数据,第二个不明白touches如何使用
 
 
求解答
已邀请:

gmajrtfp

赞同来自:

mouse就够用了,你用touches干嘛
多点?

要回复问题请先

商务合作
商务合作