Skip to main content
Participant
May 9, 2018
Answered

AnimateCC canvas can't use touch event

  • May 9, 2018
  • 1 reply
  • 713 views

The touch event still can't work even though I have put 'createjs.Touch.enable(stage);' into the actions。

This topic has been closed for replies.
Correct answer chenjil43641795

看你名字你应该会中文吧,你用鼠标事件代替触摸事件就可以了.比如,mousedown,pressup,pressdown pressmove等事件

createjs.Touch.enable(stage);


this.movieClip_1.addEventListener("click", kai.bind(this));

function kai() {
alert("弹出了")
}

1 reply

chenjil43641795
chenjil43641795Correct answer
Legend
May 9, 2018

看你名字你应该会中文吧,你用鼠标事件代替触摸事件就可以了.比如,mousedown,pressup,pressdown pressmove等事件

createjs.Touch.enable(stage);


this.movieClip_1.addEventListener("click", kai.bind(this));

function kai() {
alert("弹出了")
}