You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Tuesday, April 17th 2012, 4:01pm

Pause / Unpause audio

I'm pulling my hair out. I've tried so many methods to get a single button to pause and unpause a sound file.... help please. I have a video button that is supposed to pause the sound if it's playing so the video can be heard, but if audio is not playing, nothing happens. Then when I turn off the video, I can go back to the sound button and togglepause the audio (the sound button function is simple togglepause of audio)

<plugin name="btn_video" .... onclick=" if audio is on - PAUSE, else NULL; TURN ON VIDEO" />
<plugin name="btn_audio" ... onclick="if audio is on - PAUSE, else if audio is off - ON" />

Is the audio and video audio somehow tied together causing the conflict?

This post has been edited 2 times, last edit by "nefar1ous" (Apr 17th 2012, 4:48pm)


Tuesday, April 17th 2012, 5:19pm


Nevermind... I was looking at it all wrong. Instead of having the video button check for sound play, and then toggling it... I just used the pausesound(bgsnd); and it works. Too much stress to finalize this and I can't think straight. :)