• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Making Playback Buttons

New Here ,
Jan 26, 2021 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

183

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Jan 27, 2021 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

Votes

Translate

Translate
Community Expert ,
Jan 27, 2021 Jan 27, 2021

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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