3 Replies Latest reply on Dec 17, 2009 9:09 PM by yankeeschick

    play a sound instead of a beep?

    yankeeschick

      I'm using a script I found online for a drag-and-lock game. At the end of the game, if all the matches are complete, Director plays a "beep". I'd like to change that "beep" to a different sound (a "cheering" sound file in my cast).

       

      Here is the script:

       

      on checkGameDone
        done = TRUE
        repeat with i = 6 to 10
          if (sprite i).loc <> sprite(sprite(i).pLockToSprite).loc then
            done = FALSE
          end if
        end repeat
        if done then beep()
      end

       

       

      I'm sure it's something relatively easy - I'm guessing some change to the "if done then beep()" line, but I'm not sure what exactly I would put there instead.

       

      Thanks in advance!