uncalled sound playing with called sound

  • Help,....after 2 days i'm lost,

    I have a pretty basic tour, 7 nodes,.all with its own sound file. Tours are loaded via click of thumbnail where by xml is loaded and sound called. The problem is one pano(node) plays BOTH,..the new(its own) sound AND the previous sound file of the previuosly played pano,..no matter which one it was. This is the only thumb that acts this way. Anyone have a problem like this before???? This particular sound call does call an action also,...but even after taking it out and redoing the node I keep running into this problem....anyone???

    THUMB XML -plugin lindsey4 calling meg xml is the problem one

    <plugin name="lindsey1" keep="true" zorder="2" url="lindseydata/lindsey1/preview.jpg" parent="thumbArray" width="83.3333%" height="prop" align="topleft" edge="center" x="50%" y="19.1011%" alpha="0.8" onclick="stopallsounds();loadpano(sedan/sedan.xml,NULL,NULL,BLEND(1));" onover="action(magnify,lindsey1);" onhover="showtext(Executive Sedan,DEFAULT);" onout="action(lie,lindsey1);"></plugin>
    <plugin name="lindsey2" keep="true" zorder="2" url="lindseydata/lindsey2/preview.jpg" parent="thumbArray" width="83.3333%" height="prop" align="topleft" edge="center" x="50%" y="31.4607%" alpha="0.8" onclick="stopallsounds();loadpano(van/van.xml,NULL,NULL,BLEND(1));" onover="action(magnify,lindsey2);" onhover="showtext(Multi-Passenger Van,DEFAULT);" onout="action(lie,lindsey2);"></plugin>
    <plugin name="lindsey3" keep="true" zorder="2" url="lindseydata/lindsey3/preview.jpg" parent="thumbArray" width="83.3333%" height="prop" align="topleft" edge="center" x="50%" y="43.8202%" alpha="0.8" onclick="stopallsounds();loadpano(super/super.xml,NULL,NULL,BLEND(1));" onover="action(magnify,lindsey3);" onhover="showtext(Super Stretch,DEFAULT);" onout="action(lie,lindsey3);"></plugin>
    <plugin name="lindsey4" keep="true" zorder="2" url="lindseydata/lindsey4/preview.jpg" parent="thumbArray" width="83.3333%" height="prop" align="topleft" edge="center" x="50%" y="56.1798%" alpha="0.8" onclick="stopallsounds();loadpano(meg/meg.xml,NULL,NULL,BLEND(1));" onover="action(magnify,lindsey4);" onhover="showtext(Mega Stretch,DEFAULT);" onout="action(lie,lindsey4);"></plugin>
    <plugin name="lindsey5" keep="true" zorder="2" url="lindseydata/lindsey5/preview.jpg" parent="thumbArray" width="83.3333%" height="prop" align="topleft" edge="center" x="50%" y="68.5393%" alpha="0.8" onclick="stopallsounds();loadpano(passengercoach/passengercoach.xml,NULL,NULL,BLEND(1));" onover="action(magnify,lindsey5);" onhover="showtext(Passenger Coach,DEFAULT);" onout="action(lie,lindsey5);"></plugin>
    <plugin name="lindsey6" keep="true" zorder="2" url="lindseydata/lindsey6/preview.jpg" parent="thumbArray" width="83.3333%" height="prop" align="topleft" edge="center" x="50%" y="80.8989%" alpha="0.8" onclick="stopallsounds();loadpano(luxurycoach/luxury.xml,NULL,NULL,BLEND(1));" onover="action(magnify,lindsey6);" onhover="showtext(Luxury Coach,DEFAULT);" onout="action(lie,lindsey6);"></plugin>
    <plugin name="lindsey0" keep="true" zorder="2" url="lindseydata/lindsey0/preview.jpg" parent="thumbArray" width="83.3333%" height="prop" align="topleft" edge="center" x="50%" y="93.2584%" alpha="0.8" onclick="stopallsounds();loadpano(suv/suv.xml,NULL,NULL,BLEND(1));" onover="action(magnify,lindsey7);" onhover="showtext(All Weather/SUV,DEFAULT);" onout="action(lie,lindsey7);"></plugin>
    </krpano>


    MEG.XML

    <krpano version="1.0.8" logkey="false">
    <include url="meg0.xml"/>
    <plugin name="data" keep="true"/>
    <autorotate enabled="true" speed="6"/>
    <plugin name="soundinterface" url="megdata/graphics/soundinterface.swf" keep="true"/>

    <plugin name="hd" url="hd.png" scale="1.2" align="center"/>


    <textstyle name="DEFAULT" alpha="1" bold="false" font="Arial" fontsize="16" italic="false" textcolor="0xff000000"/>

    </krpano>


    MEG0.XML

    <krpano version="1.0.8">

    <events onxmlcomplete="wait(3);set(plugin[hd].visible,false);playsound(meg,meg/megdata/sounds/sound0.mp3,1,action(startmovie));"/>


    <panoview h="158.32" v="12.72" fov="90"/>
    <view fisheye="0" limitview="lookat" vlookatmin="-90" vlookatmax="90" fovmin="70.01" fovmax="84" fov="90" hlookat="158.32" vlookat="12.72"/>
    <autorotate horizon="12.72" tofov="90"/>
    <preview url="megdata/meg0/preview.jpg"/>
    <image type="CUBE" multires="true" tilesize="720" baseindex="0">
    <level tiledimagewidth="1439" tiledimageheight="1439">
    <left url="megdata/meg0/3/1/%v_%u.jpg"/>
    <front url="megdata/meg0/0/1/%v_%u.jpg"/>
    <right url="megdata/meg0/1/1/%v_%u.jpg"/>
    <back url="megdata/meg0/2/1/%v_%u.jpg"/>
    <up url="megdata/meg0/4/1/%v_%u.jpg"/>
    <down url="megdata/meg0/5/1/%v_%u.jpg"/>
    </level>
    <level tiledimagewidth="720" tiledimageheight="720">
    <left url="megdata/meg0/3/0/%v_%u.jpg"/>
    <front url="megdata/meg0/0/0/%v_%u.jpg"/>
    <right url="megdata/meg0/1/0/%v_%u.jpg"/>
    <back url="megdata/meg0/2/0/%v_%u.jpg"/>
    <up url="megdata/meg0/4/0/%v_%u.jpg"/>
    <down url="megdata/meg0/5/0/%v_%u.jpg"/>
    </level>
    </image>

    <hotspot name="spot0" handcursor="false" pausedonstart="true" url="videoplayer.swf" videourl="spot0.flv" onclick="togglepause()" onvideocomplete="set(hotspot[videoplay].visible,true);set(autorotate.enabled,true);" distorted="true" loop="false" ath="100.494" atv="-13.908" width="307" height="175" rx="-6.65938" ry="-19.1378" rz="2.7433"/>

    <action name="start">

    hotspot[spot0].play()
    action
    </action>

    <action name="startmovie">

    moveto(80.02,-5.13,linear(10));
    zoomto(57.91);
    hotspot[spot0].play();
    set(autorotate.enabled,false);
    oninterrupt(hotspot[spot0].stop();set(hotspot[videoplay].visible,true);set(autorotate.enabled,true);</action>


    <hotspot name="videoplay" zorder="11" visible="false" handcursor="true" url="playvideo.png" onclick="set(hotspot[videoplay].visible,false);action(startmovie);" ath="100.076" atv="-13.3867" width="50" height="50"/>

    </krpano>

    MEG.XML

    <krpano version="1.0.8" logkey="false">
    <include url="meg0.xml"/>
    <plugin name="data" keep="true"/>
    <autorotate enabled="true" speed="6"/>
    <plugin name="soundinterface" url="megdata/graphics/soundinterface.swf" keep="true"/>

    <plugin name="hd" url="hd.png" scale="1.2" align="center"/>


    <textstyle name="DEFAULT" alpha="1" bold="false" font="Arial" fontsize="16" italic="false" textcolor="0xff000000"/>

    </krpano>


    *g* After copying this code,....onxmlcomplete caught my eye,...changed it to onloadcomplete and that solved the issue,.....don't know why this is a problem,...maybe someone can explain it better to me,....hope this helps

    Rob

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!