0 Replies Latest reply on Apr 9, 2013 12:58 PM by kuyichi

    Sound won't stop in Edge project

    kuyichi

      Hey everyone,

       

      I'm currently working on a project that contains symbols.

      Every symbol contains a sound.

      I used Buzz http://buzz.jaysalvat.com/

       

      But now is the problem. The sounds play just fine when the mouse is on the symbol. (Mouse Over event)

      But it won't stop playing when the Mouse is out.

      Also if the user touches the Symbol, let's say three times, the sound is played three times, although the first one is still busy.

      Wich causes a horrible sound experience.

       

      Here are my codes:

       

      Mouse Out

      var mySymbolObject = sym.getSymbol("blokkaart");

      mySymbolObject.stop(0);

      var balSound = new buzz.sound("sounds/bal", {

          formats: [ "mp3", "wav" ]

      });

      balSound.stop();

       

      Mouse Over

      var mySymbolObject = sym.getSymbol("blokkaart");

      mySymbolObject.play();

      var balSound = new buzz.sound("sounds/bal", {

          formats: [ "mp3", "wav" ]

      });

      balSound.play();