I have the following sound code for a hotspot inside a scene for my tour, although I have the keep=false set the sound continues to play even when a new scene has been loaded. The audio is specific to only one scene.
Code
<!-- Beginning of Sound Code-->
<plugin name="soundinterface" url="soundinterface.swf" rootpath="%CURRENTXML%" preload="true" keep="false"/>
<!-- a button to mute/unmute the sound -->
<plugin name="snd" url="soundonoff.png" align="leftbottom" x="10" y="10" alpha="0.25" scale="1.0"
onover="tween(alpha,1);"
onout="tween(alpha,0.25);"
crop="0|0|50|50"
onclick="switch(soundinterface.mute); switch(crop, 0|0|50|50, 0|50|50|50);" />
<!-- play sound at 0/0 -->
<hotspot name="b1" url="headset.png" ath="18" atv="45" scale="0.3" zoom="true"
alpha="0.6"
onover="tween(alpha,1);tween(scale,.6);"
onout="tween(alpha,0.6);tween(scale,0.3);"
onclick="playsound3D(s1,Audio32.mp3, 0,0);set(autorotate.enabled,false)" />
<!-- End of sound code-->
Display More
if this is not the correct way to stop a sound when leaving a scene please let me know what to do.
Thank you in advance.
Rick