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

Does it slow down when flip over a movie clip in html5?

New Here ,
Sep 12, 2017 Sep 12, 2017

Switching left and right using the same movie clip slows down the frame when converting to html5. So I'm using two movie clips each time I reverse the same image source. Is there any workaround? Is movie clip reversal taking a lot of work on html5?

185
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

Community Expert , Sep 12, 2017 Sep 12, 2017

not really.  this runs perfectly well:

var f1=f.bind(this)

createjs.Ticker.addEventListener('tick',f1);

function f(){

if(this.a.scaleX>-1){

this.a.scaleX-=.05;

} else {

createjs.Ticker.removeEventListener('tick',f1);

}

}

Translate
Community Expert ,
Sep 12, 2017 Sep 12, 2017
LATEST

not really.  this runs perfectly well:

var f1=f.bind(this)

createjs.Ticker.addEventListener('tick',f1);

function f(){

if(this.a.scaleX>-1){

this.a.scaleX-=.05;

} else {

createjs.Ticker.removeEventListener('tick',f1);

}

}

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