thanks for the reply, i am a bit of a beginner and am not familiar with actionscript, so i have been trying to do it without. I would like to try your suggestion, but i'm not sure how, should i paste that actionscript into the actions of the button?

Those actions would go on a keyframe in one of the layers, at the same frame as the buttons. (Placing actions on buttons themselves is possible, but is bad practice as experience will show you if you keep using it long enough.)

Be sure that the instance name of the button on the stage matches the name (myButton1). And then copy and paste the script two more times, changing the button name and sound variable names to match your needs.

ok, i have removed the sounds from the 'down' states of the buttons,
and i have put the actionscript in on 3 layers on the same frame as the buttons, and i have put the name of the sound files in the 'linkage id' bit, and changed the 'button1' things aswell,

i tried it and it doesnt play them in the live preview mode, havent tried testing it, because its a big project and takes ages to load, should it play them in live preview mode?

sound1 should change with each of the three sounds that need to play. Such as sound1, sound2, sound3. The linkage name on the attachSound() needs to change as well (match the linkage name on the sound in your library).

I think live preview only shows basic rollover states, and not any actionscript occurances. So I think you will have to test the movie to find out.

Also, the three scripts can be on the same layer, in fact I would suggest using only one layer for all actionscript. This way you can easily find your code without searching multiple places.

The name of the file should be fine. The main thing I suspect it could be is the Linkage identifier.

In your library right-click on the sound, then choose "Linkage..." Make sure that the Export For Actionscript checkbox is checked. Then, the name in the Identifier box is the name that should be inside quotes in the attachSound() function.

i.e.: sound1.attachSound("UG_waterbeats.wav");

Try that, if it doesn't work or you have already done that, read on..

Another possibility is that your buttons aren't named on the stage. A quick test would be to add inside of the onPress function a trace command. Such as:
whateverButton.onPress = function() {
trace(this._name+" pressed");
stopAllSounds();
sound1.start(0,999);
}

If no words pop up upon clicking on the button while testing, the names are not matching. It doesn't need to match the clip name in the library, but the name in the Properties box when you click on the button that is placed on the stage in that frame.

I have the same question. I have 62 different buttons that should play 62 different audio files. Problem is that the audio files overlap when two or more are clicked, rather than having previous audio files stop before the new sound plays. Can you tell me how you resolved Gus's problem? Thanks, Sherry