Skip to main content
Participant
January 26, 2021
Answered

Making Playback Buttons

  • January 26, 2021
  • 1 reply
  • 259 views

Probably has been said on here before but how do I make playback buttons? 

I have an animation that I made and I want to add a Play, Pause, and Stop. 

I know very little about action script. But, I have made the buttons so when the Mouse goes over on them they change but I don't know how to link them? 

 

Would anyone have a URL I could watch to see how it is done on Animate CC 2021?

 

Please help me solve this? 

 

Thanks!

This topic has been closed for replies.
Correct answer kglad

for an html5/canvas project:

 

this.playButton.addEventListener("click",playF.bind(this));

this.pauseButton.addEventListener("click",pauseF.bind(this));

this.stopButton.addEventListener("click",stopF.bind(this));

 

function playF(){

this.play();

}

function pauseF(){

this.stop();

}

function stopF(){

this.gotoAndStop(0);

}

 

p.s.  you better change this a bit if this is a school assignment

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
January 27, 2021

for an html5/canvas project:

 

this.playButton.addEventListener("click",playF.bind(this));

this.pauseButton.addEventListener("click",pauseF.bind(this));

this.stopButton.addEventListener("click",stopF.bind(this));

 

function playF(){

this.play();

}

function pauseF(){

this.stop();

}

function stopF(){

this.gotoAndStop(0);

}

 

p.s.  you better change this a bit if this is a school assignment