Skip to main content
Participating Frequently
May 12, 2025
Question

Looping a movie clip symbol from a different point in the timeline (HTML5)

  • May 12, 2025
  • 1 reply
  • 112 views

I am trying to loop a movie clip symbol. I want the loop to start at a later point in the timeline so that the double-pulse plays once, then only one pulse plays for the rest of the duration. However, when I tried to code this in HTML5, the single pulse plays as a wave. The code is called in the internal timeline of the pulses on the last frame of the loop, which is a blank keyframe. 

 

Here is the code I am using for the pulses:

var _this = this;

this.play();

if (frameLabel == 'SinglePulse') 

	this.gotoAndPlay('SinglePulse')

 

    1 reply

    Participating Frequently
    May 12, 2025

    I have solved my issue. I turned the blank frames into regular frames and removed the "if" statement:

     

    var _this = this;	
    	this.play();
    	this.gotoAndPlay(50)
    kglad
    Community Expert
    Community Expert
    May 12, 2025

    only the last line is needed