3 Replies Latest reply on Jun 28, 2008 12:03 PM by kglad

    playing sounds onPress

    ofird
      Hi, i have a problem for quite some time and it'll be great if someone can help me.
      I'm building a kind of a pingpong game and i want that everytime the user click on a certain button a wav sound effect will play.
      here's the code of the button:

      on(press){
      if(_root.ball.hitTest(_root.ca) & _root.canPress==true)
      {
      ping.play();
      snd.start();
      tmpspeed=speed;
      }

      as u see i tried already to make a new movieclip that includes the sound and to use the play method , and also with sound var, both didn't work it just play the sound effect once when i enter this frame and that's it. Please help, thanks Ofir.