I am designing a Director movie in order to learn how to use the program. My question is how can I make a small audio file play when the user clicks on a sprite? I believe it is done via a small script. My second question is similar. How can I make the movie play a sound when the cursor hoovers upon a sprite? Can you help, please? Thanks in advance.
Look up "play() (Sound Channel)" in the online help. That will give you the syntax for playing a sound file that is in your movie's library. To play the sound in either example, you want to use a mouse event in a behavior attached to a sprite. The first example will use a mousUp event, and the second will use a mouseEnter event.
Rob has pointed you to the Lingo for playing a sound. There is a behavior in the Library Palette that makes this very easy without needing to write a script yourself. In the Media > Sound category, there is a 'Play Sound' behavior. You can click and drag this behavior onto a sprite and then in the Parameters dialog, you can choose the sound to play, the channel in which it should play, the event to activate the sound, and if you want the sound to loop.