Skip to main content
Participant
April 4, 2022
Question

Loop Button animation in a HTML5 Canvas banner

  • April 4, 2022
  • 1 reply
  • 127 views

Hi!

I'm building a banner ad in Animate on a HTML5 Canvas.

All my assets are imported PNGs and I have a movie clip at the end with a pulsating button.

I want the ad to play once and then have a loop on the pulsating button ( so the button keeps pulsating).

 

In my mind I could add a script at the end to jump to the frame the animation of the button starts.

Would that work? What code snipped could I use?

 

Final banner should be HTML5

 

Thanks, A

 

 

    This topic has been closed for replies.

    1 reply

    JoãoCésar17023019
    Community Expert
    Community Expert
    April 4, 2022

    Hi.

     

    Add a script in the last frame of the main timeline to stop the playback.

    this.stop();

     

    Have you tried this?

     

    If the animation is in a Movie Clip, then it will continue playing even if the main timeline is paused.

     

    Please let us know.

     

    Regards,

    JC