Hello,
I want to make tours where each pano xml files are in different directory, but the names of files remain same.
For each pano with sound I put in its directory file named sound.mp3. But when I click to play sound for one pano and load another pano and click to play the new sound it loads sound.mp3 from the first, but not the current directory. If I name it different, for example sound2.mp3, it loads from the current directory and everything is OK.
Here is an example:
http://bg360.net/pano/sofia/test.php
pano1 http://bg360.net/pano/sofia/protest/pano.xml
pano2 http://bg360.net/pano/sofia/pope/pano.xml
pano3 http://bg360.net/pano/sofia/pope/pano2.xml
pano1 - playsound(protest, sound.mp3, 0)
<plugin name="soundinterface"
url="%SWFPATH%/plugins/soundinterface.swf"
onloaded="set(soundcount,1);"
rootpath="%CURRENTXML%"
/>
<plugin name="soundon" url="%SWFPATH%/skin/soundon.png" align="righttop" x="5" y="5"
onclick="stopallsounds();set(plugin[soundon].visible,false);set(plugin[soundoff].visible,true);" visible="false"
/>
<plugin name="soundoff" url="%SWFPATH%/skin/soundoff.png" align="righttop" x="5" y="5"
onclick="playsound(protest, sound.mp3, 0);set(plugin[soundon].visible,true);set(plugin[soundoff].visible,false);"
/>
Alles anzeigen
pano2 - playsound(pope, sound.mp3, 0)
<plugin name="soundinterface"
url="%SWFPATH%/plugins/soundinterface.swf"
onloaded="set(soundcount,1);"
rootpath="%CURRENTXML%"
/>
<plugin name="soundon" url="%SWFPATH%/skin/soundon.png" align="righttop" x="5" y="5"
onclick="stopallsounds();set(plugin[soundon].visible,false);set(plugin[soundoff].visible,true);" visible="false"
/>
<plugin name="soundoff" url="%SWFPATH%/skin/soundoff.png" align="righttop" x="5" y="5"
onclick="playsound(pope, sound.mp3, 0);set(plugin[soundon].visible,true);set(plugin[soundoff].visible,false);"
/>
Alles anzeigen
pano3 - playsound(pope2, sound2.mp3, 0)
<plugin name="soundinterface"
url="%SWFPATH%/plugins/soundinterface.swf"
onloaded="set(soundcount,1);"
rootpath="%CURRENTXML%"
/>
<plugin name="soundon" url="%SWFPATH%/skin/soundon.png" align="righttop" x="5" y="5"
onclick="stopallsounds();set(plugin[soundon].visible,false);set(plugin[soundoff].visible,true);" visible="false"
/>
<plugin name="soundoff" url="%SWFPATH%/skin/soundoff.png" align="righttop" x="5" y="5"
onclick="playsound(pope2, sound2.mp3, 0);set(plugin[soundon].visible,true);set(plugin[soundoff].visible,false);"
/>
Alles anzeigen