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

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

New Here ,
Sep 12, 2017 Sep 12, 2017

Copy link to clipboard

Copied

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?

Views

142

Translate

Translate

Report

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);

}

}

Votes

Translate

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

Copy link to clipboard

Copied

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);

}

}

Votes

Translate

Translate

Report

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