Animate CC HTML5 Canvas - loop X times and then stop mid animation, not on endframe


hi,

 

been searching online hours , can't find answer this? surely other people having same problem?

 

trying create simple html5 canvas ad animation, adobe cc animate.

 

frame 0 (start)

|

|

frame 50 (endframe)

|

|

frame 60 (endframe fades out white animation can loop nicely)

 

the resources can find telling me put on last frame:

 

if(!this.alreadyexecuted){

this.alreadyexecuted=true;

this.loopnum=1;

} else {

this.loopnum++;

if(this.loopnum==3){

this.stop();

}

}

 

but loops whole timeline frame 0 60. means endframe solid white empty panel (the fadeout).

 

anyone have ideas? think needs like:

 

frame 0 (start)

|

|

frame 50 (endframe) if loop =<2, continue playing. if loop = 3, stop here.

|

|

frame 60 if loop =<2, go frame 0 + play.

 

many in advance!

 

lauren

put code on line 50.



More discussions in Adobe Animate CC - General


adobe

Comments

Popular posts from this blog

Reader DC

AdobeIDの作り方

Adobe InDesign CC 2017 has stopped working