PDA

View Full Version : mp3hotspot.swf - start with sound off?


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

visionman
07-09-2009, 04:16 PM
Doh - simple solution ...

<global onLoad="SoundVolume=0" >

There is still the issue of the tracks starting when the pano loads, albeit at zero volume. I can live with that though. There is also the potential issue of multiple tracks playing at the same time if users do not 'shut down' a track before they open another one. I can live with too.

Visionman

Paddy2a
07-09-2009, 04:18 PM
Hi Visionman,

I tried the same and inversed the code :
<spot id="bell" url="images/info.png" pan="7.87" tilt="-2.00" depth="201" scale="0.10" scaleable="0" smartScale="1" alpha="0" onclick="makeSoundGoOff;"
makeSoundGoOff ="bellmp3.soundVolume=1;onClick=makeSoundGoOn;"
makeSoundGoOn ="bellmp3.soundVolume=0;onClick=makeSoundGoOff;"
onOver="" onOut="" linked="images/rec" alt="Sonnette"/>

<spot id="bellmp3" url="files/mp3hotspot.swf" file="files/bell.mp3" repeat="1000" soundVolume="0" linked="images/rec" />

info.png is just to cover the spot and triger the voume to 1 as it's alpha is 0

makesoundGoOff/On is inversed. 1 instead of 0, etc..

hope you understand..

you can see it here. (http://www.rocefiori-visitevirtuelle.com/)
http://www.rocefiori-visitevirtuelle.com/
nav to "hotel" and then click the hotel bell to wake up Celine....but she doesn't care how many times you bell her.

Inconvience is that bellmp3 is playing in the background all the time with SoundVolume=0 even if you don"t click it and it is not in syn.

Paddy

visionman
07-09-2009, 09:51 PM
Hi Paddy

Just trying to get my head around the effect of inversing the code. Stunning virtual tour though - from the photography to the tech side of things - great job! I was in Corsica a couple of years back. A beautiful island indeed - what a great place for you to live and work.

Cheers

Visionman

ramirox3
07-10-2009, 02:04 PM
Hy Paddy2a
nice tour
I'm surprised by the speed with which load the panos and in very good quality, I see that you use a cache plugin, how it works, and where I can buy? or to know information about that?
Thanks
Ramiro

unkle75
07-10-2009, 04:48 PM
Hi Ramiro

I've also been looking for the cache plugin but it seems that it's no longer available as zephyr is now concentrating on panosaldo. This thread explains more http://flashpanoramas.com/forum/showthread.php?t=2130&highlight=zephyr . If anyone does know where to get this functionality please help!!!

Piete

Trausti Hraunfjord
07-10-2009, 05:49 PM
If anyone does know where to get this functionality please help!!!

Piete

Hi Piete.

Preloader - FFC's very own preloader that preloads whatever content you want (whole tours, videos, music, images) Just a few clicks and you are done. (http://flashpanoramas.com/forum/showthread.php?p=13082#post13082)

I know this helps.

Paddy2a
07-11-2009, 08:13 AM
Hi,
Yes, it is Zephyr's plugin that I fortunately bought before they stopped selling it. Shame as i would have liked a couple of other plugins too.

I got FFC just when it came out and haven't reaaly used it since, but it looks like it's time for me to reinstall it.

Yes, Corsica really is a beautifull place to live, I'll put up a good few panos of the island after the summer.

Regards,

Paddy