Copy link to clipboard
Copied
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!
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
Copy link to clipboard
Copied
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