# Sounds in AS3

**URL:** https://forum.kirupa.com/t/sounds-in-as3/328728
**Category:** flash
**Created:** [June 11, 2012, 3:37am UTC](https://forum.kirupa.com/t/sounds-in-as3/328728 "2012-06-11T03:37:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lgustafs](https://avatars.discourse-cdn.com/v4/letter/l/85e7bf/32.png) [@lgustafs](https://forum.kirupa.com/u/lgustafs)
#### Post date: [June 11, 2012, 3:37am UTC](https://forum.kirupa.com/t/sounds-in-as3/328728/1 "2012-06-11T03:37:11Z")

</div>

I see how to play an external sound file in AS3:

var soundClip:Sound;

function init() {  
soundClip = new Sound();  
soundClip.load(new URLRequest(“NameOfSong.mp3”));  
soundClip.addEventListener(Event.COMPLETE, soundLoaded);  
soundClip.addEventListener(ProgressEvent.PROGRESS, soundLoading);  
}  
init();

function soundLoaded(e:Event) {  
soundClip.play();  
}

function soundLoading(e:ProgressEvent) {  
// preloader information goes here  
}

* * *

If I click on a button that goes to and plays another label or goes to and stop sat a certain frame, how do I stop the first sound file and begin to play a second?
