For the play button I use
Expand|Select|Wrap|Line Numbers
- on ({
- sound.start(cue);
- }
Expand|Select|Wrap|Line Numbers
- on(release){
- cue=Math.round (sound.position/1000);
- sound.stop();
- }
Expand|Select|Wrap|Line Numbers
- on(press){
- stopAllSounds();
- cue=0;
- }
Expand|Select|Wrap|Line Numbers
- sound=new Sound();
- sound.loadSound("mymusic.mp3");
- stop();