Start a new topic

Play button problems

Play button problems

Thanks! Got it :)


AR.Sound offers the onFinishedPlaying trigger. This should allow you to set a flag to guard against multiple sounds playing at the same time.

sound.onFinishedPlaying = function(){playSound=true};

I have created a play function to play a song when a user presses a button, but now I am trying to figure out how to prevent the user from pressing the play button multiple times and the clip playing over the other one with every play press.
Login or Signup to post a comment