Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Where exactly to you insert this code? I'm very new to Adobe Animate. What should I select and which panel do I insert this code into?
Copy link to clipboard
Copied
code is added to the actions panel.
(and you'll need to use as3, not as2 from 15 years ago.)
Copy link to clipboard
Copied
Wow! Thanks for the quick reply! I saw this was a very old thread. I wasn't even sure if anybody was following it anymore. Yes, I'm using the latest version of Adobe Animate.
I found the actions panel. Can I apply this to any last frame? It's a banner ad, so I chose the last animation frame of the frame that surrounds the artwork (a little confusing that they’re both frames). When I copied and pasted the code into the Actions panel, it appeared under the Scene 1 at “frame: Frame 198”. After that, I tested the movie with the Publish settings with the Loop on and the off but there was no change. Loop off still only runs once and Loop on runs forever. I must be missing something. Please advise.
LG
Copy link to clipboard
Copied
as3 or html/canvas project?
Copy link to clipboard
Copied
html/canvas, I believe. I need to supply it to a newspaper as an banner ad for their online publication.
Copy link to clipboard
Copied
label the first frame of the loop startframe, and add to the end frame of the loop actions panel:
if(!this.playCount){
this.playCount=1;
} else {
this.playCount++;
}
if(this.playCount==3){
this.stop()
} else {
this.gotoAndPlay("startframe");
}
Copy link to clipboard
Copied
OMG! It worked! Thank you. Thank you. Thank you. I had to Google how to label a frame, but that's okay! Have a great evening (or whatever time of day it is where you are).
Copy link to clipboard
Copied
you're welcome! (and thanks for the follow up.)