Hallo,
ich habe ein Pano wo ich in jeder einzelnen Szene einen Sound abspiele. Und zwar mit diesem Code:
<scene name="scene_Hof und Spielplatz" title="Hof und Spielplatz" onstart="" thumburl="panos/Hof_und_Spielplatz.tiles/thumb.jpg" lat="" lng="" heading="">
<!-- load the soundinterface plugin -->
<plugin name="soundinterface"
url="plugins/soundinterface.swf"
alturl="plugins/soundinterface.js"
rootpath=""
preload="true"
keep="true"
/>
<!-- start playing the sound -->
<events name="currentpano"
onnewpano="playsound(bgsnd, 'audio/2.Schulhof.MP3', 1);"
onremovepano="stopsound(bgsnd);"
/>
<view hlookat="14.359" vlookat="3.914" fovtype="MFOV" fov="127.011" maxpixelzoom="0.7" fovmin="70" fovmax="120" limitview="auto" />
Das funktioniert auch sehr gut nur ist es nervig das wenn man zwischen den Panos hin und her switcht immer wieder der selbe Ton abgespielt wird. Darum würde ich gerne einen globalen Stop Button für alle Sounds in dem Pano einbauen.
Nur wo und wie muss ich das machen? Wie gesagt in jeder Szene ist der oben angegebene Code drin in der tour.xml und in der vtourskin.xml noch dieser:
<!-- load the soundinterface plugin -->
<plugin name="soundinterface"
url="%SWFPATH%/plugins/soundinterface.swf"
alturl="%SWFPATH%/plugins/soundinterface.js"
rootpath=""
preload="true"
keep="true"
/>
Danke für eure Hilfe.