Beiträge von thisjustin

    Change name of the sound 1_welcome to eg welcome_1 and let me know.

    Missed that requirement. Unfortunately, I tried that and it didn't fix it. Pause still is just starting another instance of the audio. You can view the example here

    Code
    <hotspot name="play3" url="spots/play_button.png" scale="0.5" ath="-173.74343657492275" atv="2.9597981567441973" onover="tween(scale,0.4);" onout="tween(scale,0.5);" onclick="set(hotspot[pause3].visible,true); set(hotspot[play3].visible,false); playHtml5sound2d(false, welcome_1, sounds/welcome_1, 1.0, 1.0, false);" />
    <hotspot name="pause3" url="spots/pause_button.png" scale="0.5" ath="-173.74343657492275" atv="2.9597981567441973" visible="false" onover="tween(scale,0.4);" onout="tween(scale,0.5);" onclick="set(hotspot[play3].visible,true); set(hotspot[pause3].visible,false); Html5Soundpause(welcome_1)" />

    It's the last action in this sequence - Html5Soundpause that's just restarting another instance of the sound. I currently have it switched to Html5Soundstop, which seems to be working

    Code
    <hotspot name="play1" url="spots/play_button.png" scale="0.5" ath="-206.77988248917774" atv="5.06344523227781" visible="false" onover="tween(scale,0.4);" onout="tween(scale,0.5);" onclick="wait(1.0); set(hotspot[pause1].visible,true); set(hotspot[play1].visible,false); playHtml5sound2d(false, 1_welcome, sounds/1_welcome, 1.0, 1.0, true,,,,,,Html5Soundstop(1_welcome); set(hotspot[pause1].visible,false); set(hotspot[play1].visible,true) );" />
    <hotspot name="pause1" url="spots/stop_button.png" scale="0.5" ath="-206.77988248917774" atv="5.06344523227781" visible="false" onover="tween(scale,0.4);" onout="tween(scale,0.5);" onclick= "wait(1.0);  set(hotspot[play1].visible,true); set(hotspot[pause1].visible,false); Html5Soundpause(1_welcome)" />