How to make a toggle button to toggle Audio Mute?

(Jonathan Deutsch) #21

you just need: = true;

Note that some older browsers didn’t support this property; see this stack overflow tip if you need workarounds:

(Debora Cameron) #22

Hi Mark,
I found your answers very helpful and was able to download the files you created and play with them a little. I’m very new to Hype and Javascript and got stuck with the on/off audio button. I followed the instructions in this thread but can get the button to work! I have attached the file here. The button on top is the one I’m stuck with. The two buttons right below is my back up plan if I can get it to work.

I would love to know what I’m doing wrong! I don’t know javascript, so I just copied the functions you had and applied to the scenes. I had to remove the audio from this file as it wouldn’t let me upload. Thank you so much. Issue with (15.4 KB)