# (AS3) sound wont close

**URL:** https://forum.kirupa.com/t/as3-sound-wont-close/219748
**Category:** flash
**Created:** [March 19, 2007, 10:47pm UTC](https://forum.kirupa.com/t/as3-sound-wont-close/219748 "2007-03-19T22:47:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pi3rc3](https://avatars.discourse-cdn.com/v4/letter/p/dfb087/32.png) [@pi3rc3](https://forum.kirupa.com/u/pi3rc3)
#### Post date: [March 19, 2007, 10:47pm UTC](https://forum.kirupa.com/t/as3-sound-wont-close/219748/1 "2007-03-19T22:47:11Z")

</div>

im trying to close a sound so that i can load and play another but when i call the .close() on my sound object i get this error…

Error: Error #2029: This URLStream object does not have a stream opened.  
at flash.media::Sound/close()

it tells me this even though the sound object is currently playing.  
here is the code im using to inistialize

```auto
mainMusic = new Sound();
			mainMusic.load(new URLRequest("lvl1.mp3"));

```

then elsewhere i call…

```auto
mainMusic.close();
				mainMusic.load(new URLRequest("WaterWorld.mp3"));

```

any ideas on why it wont let me do this?
