I never watched this question over, but I have a problem now whith something very simple in fact :
I would like that my sound starts immediately without waiting for the end for loading of the visit. Exactly like this :
http://www.visites-interactives.eu/fr/visite-aero…voie/index.html
I precise that in this example, the sound is included as a separate file so it starts with the opening of the html page and it's ok.
But now, I would like the buttons ON THE VISIT with a simultaneous start of the sound with the opening of the html page. All what I found is always "onloaded" and if I replace by "onstart", it does not work of course.
So, how should I write correctly this code :
<plugin name="soundinterface"
url="plugins/soundinterface.swf"
rootpath="sound"
onloaded="action(play)"
/>
<action name="play">
playsound(sound,son.mp3,0);
</action>
<action name="mute">
stopsound(sound)
</action>
<plugin name="off" url="images/off.png" visible="true" align="leftbottom" edge="leftbottom" y="10" x="156" alpha="1.0" onhover="showtext(stop the sound)" onover="set(alpha,0.7)" onout="set(alpha,1.0)"
onclick="action(mute); set(plugin[sound_off].visible,false); set(plugin[sound_on].visible,true)"/>
<plugin name="on" url="images/on.png" visible="true" align="leftbottom" edge="leftbottom" y="10" x="126" alpha="1.0" onhover="showtext(sound on)" onover="set(alpha,0.7)" onout="set(alpha,1.0)"
onclick="action(play); set(plugin[sound_on].visible,false); set(plugin[sound_off].visible,true)"/>
Thank you for your help.
Ma