Mouse click sound placed on button down state only works first time

Explorer ,
Mar 25, 2022 Mar 25, 2022

Copy link to clipboard

Copied

I reuse a button several times. Each instance I use the button, I have it named uniquely so I can access it through the code.  I have an mouse down event to play the mouse click sound in my library, an mp3. The first time it works fine. But never works again.

 

Here are my settings when editing the button:

KansasSteve_0-1648226527453.png

KansasSteve_2-1648226593135.png

 

Any ideas as to how to make the button sound click every time it is clicked upon?

 

Views

72

Likes

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

Explorer , Mar 25, 2022 Mar 25, 2022
Okay, my work-around worked! So if you want to reuse a sound file, that ain't happening so duplicate it and name it differently. Also, you gotta create a unique button each time, or it still won't work. So, duplicate naming for sounds, and unique buttons, and no reusing buttons. But keep your instance name (even though there will be no more of them). 

Likes

Translate

Translate
Explorer ,
Mar 25, 2022 Mar 25, 2022

Copy link to clipboard

Copied

If I duplicate the mp3 sound file and name it differently, it works once too when called. Do I need add duplicates of the sound file in my library for every button press?

Likes

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
Adobe Community Professional ,
Mar 25, 2022 Mar 25, 2022

Copy link to clipboard

Copied

Hi.

 

Are you setting the sound to be played in the IDE only or using code?

 

Please let us know.

 

Regards,

JC

Likes

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
Explorer ,
Mar 25, 2022 Mar 25, 2022

Copy link to clipboard

Copied

I pasted shots from the integrated development environment I believe, thus the screen shots above. Or am I mistaken? 

Likes

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
Explorer ,
Mar 25, 2022 Mar 25, 2022

Copy link to clipboard

Copied

LATEST

Okay, my work-around worked! So if you want to reuse a sound file, that ain't happening so duplicate it and name it differently. Also, you gotta create a unique button each time, or it still won't work. So, duplicate naming for sounds, and unique buttons, and no reusing buttons. But keep your instance name (even though there will be no more of them). 

Likes

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