One touch button

I would like to make one button that starts and stops an mp3 file when clicked.
The button is an image called dictaphone, the mp3 file is called tonguetied.mp3

I don’t know if this affects it, but all this should happen in one frame that has been stopped by code in an action layer.

Any ideas anyone?

Thanks,
Ad.

Read this :slight_smile:

Thanks for the reply.

I have managed to make it work however, with help from elsewhere.

If anyone else has this problem here is the code I used:

on (release) {
count++;
if (count%2) {
mySound = new Sound();
mySound.loadSound(“track 02.mp3”, true);
} else {
mySound.stop();
}
}

Just attach this to any button and use the phrase in quotes to link to your music file.

thats an interesting pice of AS