Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

AnimateCC canvas can't use touch event

New Here ,
May 08, 2018 May 08, 2018

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

1525843334(1).png

684
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , May 09, 2018 May 09, 2018

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

createjs.Touch.enable(stage);


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

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

Translate
Enthusiast ,
May 09, 2018 May 09, 2018
LATEST

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

createjs.Touch.enable(stage);


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

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines