I was feeling smug enough about controlling sound via script yesterday to dare to post an answer to someone's question!! Ha! The gods don't like hubris.<br><br>Today everything is different.<br><br>I've got a button that plays a sound when clicked. I'd like the sound to loop and the button to toggle it on and off<br>
<br>It seems to forget its loop value when I start controlling it via script.<br><br>mySoundIcon.play();<br><br>However if I just put the sound icon under a button icon and set it to play =1 and loop = 5, then the looping works and all is fine. I can even stop it and reset it without any problems. Just can't manage to play it from script more than one time.<br>
<br>Tried putting an onSoundComplete event to reset it and play it but it just went mad and looped very bizarrely without ever waiting to finish.<br>
<br>Then I tried the getSound route but can't seem to get the timing right so this always returns undefined.<br><br>Any ideas? I think I must be missing something very simple.<br><br>Thanks!<br>ma<br>