Making Playback Buttons

New Here ,
Jan 26, 2021

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!

TOPICS
ActionScript, How to

Views

48

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

1 Correct Answer

Adobe Community Professional , Jan 27, 2021
kglad Adobe Community Professional , Jan 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

Likes

Translate

Translate
Jump to answer Jump to answer
Adobe Community Professional ,
Jan 27, 2021

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

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more