pause and play button bug !

  • hi,

    i use buttons to control the pause an play sound in my Vtour. Here it is (in my default skin' xml):

    <plugin name="pause" zorder="6" keep="true" align="rightbottom" x="+48" y="162"
    url="%SWFPATH%/skin/Odyssea.png" effect="glow(0x000000,0.7,4,2);dropshadow(1,0x000000,3,1);"
    scale="0.56" blendmode="normal" alpha="0.0" crop="700|50|100|40" onovercrop="700|150|100|40"
    ondowncrop="700|250|100|40" onhover="showtext(Music, buttonstyle);"
    onclick="pausesound(Mouettes); pausesound(Vent); pausesound(Port); pausesound(Cigales); pausesound(rieuse);"

    onloaded="tween(alpha, 1.0, 2);" />

    <plugin name="play" zorder="6" keep="true" align="rightbottom" x="+48" y="185"
    url="%SWFPATH%/skin/Odyssea.png" effect="glow(0x000000,0.7,4,2);dropshadow(1,0x000000,3,1);"
    scale="0.55" blendmode="normal" alpha="0.0" crop="600|0|100|50" onovercrop="600|100|100|50"
    ondowncrop="600|200|100|50" onhover="showtext(Music, buttonstyle);"
    onclick="resumesound(Mouettes); resumesound(Vent); resumesound(Cigales); resumesound(Port); resumesound(rieuse);"

    onloaded="tween(alpha, 1.0, 2);" />


    But wnen you click two times on play, it brings twice the sound who's supposed to run in this pano. And of course when you click on pause it stops only one of the two.!
    Do i have to use the "pausesoundtoggle" function ? What's that ? I've tried but didn't understand. I need to fix it to be able to propose a good Vtour to one of my first client.

    Thanks. *smile*

  • I found the way..Simple but heavy.

    I wanted to avoid a huge code by loading a separate xml with all the needed settings but you always gonna have a problem somewhere when using it.
    When you use a plugin via a button (stop an play for ex) on a Vtour, you have to write and load this button in each scene with the proper settings.
    That's the only way i found.

    That's it.

Participate now!

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