Skip to main content
sevien
Participant
September 12, 2017
Answered

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

  • September 12, 2017
  • 1 reply
  • 198 views

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?

This topic has been closed for replies.
Correct answer kglad

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

}

}

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
September 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);

}

}