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

Play audio ONLY when button is clicked (Adobe animate)

Community Beginner ,
Apr 06, 2021 Apr 06, 2021

Copy link to clipboard

Copied

Hi guys,

I'm making a scoreboard on Adobe Animate, but I'm having issues in regards to sound for buttons.

Scoreboard is similar to the one used on the TV Quiz show "The Chase".

 

I've some created buttons for this scoreboard. 

These buttons are:

Add one [point] for Team - Button 1

Chaser [Point] Pushback - Button 2

Add One [point] for opponent - Button 3

 

final Chase picture.png

 

 

 

Function:

Button 1 - When this button is clicked, it goes to "next Scene and plays[s]".  

Button 2 - When this button is clicked, it goes to "Previous frame and stop[s]". 

Button 3 - When this button is clicked, it goes to "next frame and stop[s]". 

 

 

I want a sound effect to be played when clicked.   I've imported 2-4 second sound effects (mp3 files) to the library. When clicking on the button > Properties>Frame>Sound I selected my desired sound effect.

 

However, there are 2 problems with this:
1) when I preview the animation, button sound effects starts playing without clicking as soon as the frame is entered. I only want sound effect activated when button is clicked.

 

2) Once I set this sound for one button on that layer, I cannot assign sound to another button, as they all share the same audio file.

 

 

Is there anyway I can get these buttons to simply play sound effects ONLY when it is clicked ? 

 

Extra notes:

All butons are on one layer on time line.

I'm new to adobe animate.

I'm not a programmer. But I can make out what code is doing.

 

Thanks in advance.

TOPICS
ActionScript , Code , How to , Timeline

Views

1.9K

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 Beginner , Apr 14, 2021 Apr 14, 2021

I've managed to find out. I needed to click into the button and place the audio file into "HIT" frame. This way the button only play audio when it is clicked on and when hovered over.



little bit reading help me find answer:

https://helpx.adobe.com/uk/animate/kb/create-buttons.html

 

the section about invisible buttons helped figure it out.

Votes

Translate

Translate
Community Expert ,
Apr 06, 2021 Apr 06, 2021

Copy link to clipboard

Copied

make sure your sound is on stream and not event. 

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
Community Beginner ,
Apr 07, 2021 Apr 07, 2021

Copy link to clipboard

Copied

Hi Nick,

 

Thank for reply.

 

Unfortunately, chaging the sound to stream didnt fix it. When previewing animation I didnt get any sound at all. When changing back to event, sound plays as soon as frame enter. But want to only play sound, when clicked.

 

Do you know what else can be done ?

 

Thanks

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
Community Beginner ,
Apr 14, 2021 Apr 14, 2021

Copy link to clipboard

Copied

LATEST

I've managed to find out. I needed to click into the button and place the audio file into "HIT" frame. This way the button only play audio when it is clicked on and when hovered over.



little bit reading help me find answer:

https://helpx.adobe.com/uk/animate/kb/create-buttons.html

 

the section about invisible buttons helped figure it out.

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