2 Replies Latest reply on Oct 10, 2008 6:04 AM by Gabelach

    Sound activation

    Gabelach
      I want to play a sound (like an explosion) when two object collide. The code should be with this structure:
      if(this.hitTest(_root.ball)){
      //play audio
      }
      I have loaded the sound in the library but now i don't know what to do. The codes i wrote don't work for an unknown reason xD.
      Could someone help me?