visionman
07-09-2009, 03:51 PM
Hi,
I have a pano with several hotspots. The idea is that when you click on one of them, it starts track1. If you click on it again, it turns it off. If you click on another hotspot, it starts track2 etc.
I have almost got the xml code to work, in that each hotspot toggles its respective track on and off.
However, the pano loads with all tracks ON - a total racket! Can I set it up so that the pano loads with all tracks OFF?
Here's my code ...
<!—start of first track -->
<spot id="track1_pic" static="1" salign="RT" linked="office" staticX="-270" staticY="20"
url="track1.png"
alpha="0.5"
onclick="makeSoundGoOff;"
makeSoundGoOff="track1.soundVolume=0;onClick=makeSoundGoOn;"
makeSoundGoOn="track1.soundVolume=1; onClick=makeSoundGoOff;" />
<spot id="track1" url="mp3hotspot.swf" file="01.mp3" linked="office" repeat="1000" pan="-70" tilt="-20" enableSoundPanning="1" soundRadius="200" />
<!—end of first track -->
<!—start of second track -->
<spot id="track2_pic" static="1" salign="RT" linked="office" staticX="-270" staticY="60"
url="track2.png"
alpha="0.5"
onclick="makeSoundGoOff;"
makeSoundGoOff="track2.soundVolume=0;onClick=makeSoundGoOn;"
makeSoundGoOn="track2.soundVolume=1; onClick=makeSoundGoOff;" />
<spot id="track2" url="mp3hotspot.swf" file="02.mp3" linked="office" repeat="1000" pan="-70" tilt="-20" enableSoundPanning="1" soundRadius="200" />
<!—end start of second track -->
<!—start of third track -->
…. and so on …
Many thanks
Visionman
I have a pano with several hotspots. The idea is that when you click on one of them, it starts track1. If you click on it again, it turns it off. If you click on another hotspot, it starts track2 etc.
I have almost got the xml code to work, in that each hotspot toggles its respective track on and off.
However, the pano loads with all tracks ON - a total racket! Can I set it up so that the pano loads with all tracks OFF?
Here's my code ...
<!—start of first track -->
<spot id="track1_pic" static="1" salign="RT" linked="office" staticX="-270" staticY="20"
url="track1.png"
alpha="0.5"
onclick="makeSoundGoOff;"
makeSoundGoOff="track1.soundVolume=0;onClick=makeSoundGoOn;"
makeSoundGoOn="track1.soundVolume=1; onClick=makeSoundGoOff;" />
<spot id="track1" url="mp3hotspot.swf" file="01.mp3" linked="office" repeat="1000" pan="-70" tilt="-20" enableSoundPanning="1" soundRadius="200" />
<!—end of first track -->
<!—start of second track -->
<spot id="track2_pic" static="1" salign="RT" linked="office" staticX="-270" staticY="60"
url="track2.png"
alpha="0.5"
onclick="makeSoundGoOff;"
makeSoundGoOff="track2.soundVolume=0;onClick=makeSoundGoOn;"
makeSoundGoOn="track2.soundVolume=1; onClick=makeSoundGoOff;" />
<spot id="track2" url="mp3hotspot.swf" file="02.mp3" linked="office" repeat="1000" pan="-70" tilt="-20" enableSoundPanning="1" soundRadius="200" />
<!—end start of second track -->
<!—start of third track -->
…. and so on …
Many thanks
Visionman