Can't stop the sound (2)

  • What's wrong with this code?

    Code
    <krpano version="1.0.8" 
    		onstart="setupStart"; "stopallsounds()"; 
    		>

    I have two panoramas, linked by a hotspot and a sound file each. When I start sound 1 in pano 1 and go to pano 2 while sound 1 hasn't finished, it is still playing. I tried onxmlcomplete as well and even

    Code
    <plugin name="soundinterface"
        	url="plugins/soundinterface.swf"
        	keep="true" / false
        	onloaded="stopallsounds();" 
        	/>

    That seems not to be too complicated, but still I cannot figure out why this doesn't work....

    Any help appreciated very much

    Michael

  • Hi,

    there are a lot of error is your code,
    was it posted correct or does it even work/run?

    this line is completely wrong: *wink*

    Code
    onstart="setupStart"; "stopallsounds()";

    maybe try that:

    Code
    onstart="setupStart(); stopallsounds()";

    or better post the full example, then it would be easier to explain,

    best regards,
    Klaus

  • Thank you Klaus, that was the point... I had the wrong syntax. I'm blind to this kind of mistakes sometimes...

    ... but I can not keep myself from correcting you as well, since your piece of code did not work immediately. Look here, you have set the ";" wrong as well *wink*

    Code
    onstart="setupStart(); stopallsounds();"

    You can see (and listen to) the result here:

    http://www.panoramanews.de/wp-content/upl…erlin-2010.html

    Thank you very much for your immediate help,

    Michael

    2 Mal editiert, zuletzt von mstoss (16. Juli 2010 um 12:43)

  • I can't mute / unmute sound :(

    What's wrong?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!