hello everyone!
sorry for my bad english
Code
<krpano version="1.0.8.14">
<plugin name="soundinterface" url="plugins/soundinterface.swf" rootpath="%CURRENTXML%"/>
<!-- a button to play/next the sound -->
<plugin name="play" url="play.png" align="rightbottom" x="40" y="10" onclick="playsound(track_1,music/track_1.mp3, 0,0);" />
<plugin name="next" url="next.png" scale="0.7" align="rightbottom" x="20" y="50" onclick="new_i(); switch(i, 1, 2, 3, 4); next_track();" />
<action name="new_i">
set(i,0);
</action>
<action name="next_track">
if(i == 1, stopallsounds(true); playsound(track_1,music/track_1.mp3, 0,0));
if(i == 2, stopallsounds(true); playsound(track_2,music/track_2.mp3, 0,0));
if(i == 3, stopallsounds(true); playsound(track_3,music/track_3.mp3, 0,0));
if(i == 4, stopallsounds(true); playsound(track_4,music/track_4.mp3, 0,0));
</action>
</krpano>
Display More
this is a plug xml file describing soundinterface in my tour.
when i pressed "play" start the first track! OK
but button "next" don't work