visionman
11-15-2010, 02:14 PM
Hi,
Is there any way of adding an mp3 file to a pano that doesn't start automatically once hotspots are loaded?
I have worked out how to toggle sound on/off, but I want to be able to start/stop the audio, which is not the same thing.
Here's my code so far (it places an audio start button (audio_off.png) on a larger graphic panel (wheelpanel.png) ...
<box id="wheelorange" linked="nave" url="hotspot_orange.png"
onLoad="scale=0.375; scale=0.1,4000,bounce" alpha="0.85"
visible="1" pan="-96" tilt="28" alignX="-0.5" alignY="-0.5"
segmentsX="15" segmentsY="15" orientation="sphere" depth="10" scale="1"
onClick="wheelpanel.visible+=1;wheelaudio.visible+=1;wheel. visible=0;window.visible=0;
wheelorange.visible=0" onOut="wheel.visible=1"/>
<spot id="wheelpanel" url="wheelpanel.png" static="1" scale="1" align="CM" salign="CM" staticX="0" staticY="0" visible="0" alpha="0.85" depth="40" onClick="wheelpanel.visible=0;wheelaudio.visible=0;wheel.vi sible+=1;wheelorange.visible+=1;window.visible+=1" onOver="" onOut="" />
<spot id="wheelaudio" url="audio_off.png" static="1" scale="1" align="CM" salign="CM" staticX="-148" staticY="-126" visible="0" alpha="0.85" depth="41"
onClick="makeSoundGoOn"
makeSoundGoOff="track1.soundVolume=0;onClick=makeSoundGoOn;"
makeSoundGoOn="track1.soundVolume=1; onClick=makeSoundGoOff;"
onOver="" onOut="" />
<spot id="track1" url="mp3hotspot.swf" file="test.mp3" linked="nave" repeat="30000" pan="0" tilt="0" enableSoundPanning="0" soundRadius="360" />
This is the end result, combining the 2 graphical hotspots ...
http://www.360vision.co.uk/uploads/audio.jpg
Any help greatly appreciated.
Thanks
Visionman
Is there any way of adding an mp3 file to a pano that doesn't start automatically once hotspots are loaded?
I have worked out how to toggle sound on/off, but I want to be able to start/stop the audio, which is not the same thing.
Here's my code so far (it places an audio start button (audio_off.png) on a larger graphic panel (wheelpanel.png) ...
<box id="wheelorange" linked="nave" url="hotspot_orange.png"
onLoad="scale=0.375; scale=0.1,4000,bounce" alpha="0.85"
visible="1" pan="-96" tilt="28" alignX="-0.5" alignY="-0.5"
segmentsX="15" segmentsY="15" orientation="sphere" depth="10" scale="1"
onClick="wheelpanel.visible+=1;wheelaudio.visible+=1;wheel. visible=0;window.visible=0;
wheelorange.visible=0" onOut="wheel.visible=1"/>
<spot id="wheelpanel" url="wheelpanel.png" static="1" scale="1" align="CM" salign="CM" staticX="0" staticY="0" visible="0" alpha="0.85" depth="40" onClick="wheelpanel.visible=0;wheelaudio.visible=0;wheel.vi sible+=1;wheelorange.visible+=1;window.visible+=1" onOver="" onOut="" />
<spot id="wheelaudio" url="audio_off.png" static="1" scale="1" align="CM" salign="CM" staticX="-148" staticY="-126" visible="0" alpha="0.85" depth="41"
onClick="makeSoundGoOn"
makeSoundGoOff="track1.soundVolume=0;onClick=makeSoundGoOn;"
makeSoundGoOn="track1.soundVolume=1; onClick=makeSoundGoOff;"
onOver="" onOut="" />
<spot id="track1" url="mp3hotspot.swf" file="test.mp3" linked="nave" repeat="30000" pan="0" tilt="0" enableSoundPanning="0" soundRadius="360" />
This is the end result, combining the 2 graphical hotspots ...
http://www.360vision.co.uk/uploads/audio.jpg
Any help greatly appreciated.
Thanks
Visionman