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

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

Participant ,
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

187

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

Participant , 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). 

Votes

Translate

Translate
Participant ,
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?

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 Expert ,
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

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
Participant ,
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? 

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
Participant ,
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). 

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