# \[AS3.0\] Streaming Sounds Error

**URL:** <https://forum.kirupa.com/t/as3-0-streaming-sounds-error/218087>\
**Category:** flash\
**Created:** [March 4, 2007, 11:44pm UTC](https://forum.kirupa.com/t/as3-0-streaming-sounds-error/218087 "2007-03-04T23:44:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dewey](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dewey](https://forum.kirupa.com/u/dewey)\
**Post date:** [March 4, 2007, 11:44pm UTC](https://forum.kirupa.com/t/as3-0-streaming-sounds-error/218087/1 "2007-03-04T23:44:36Z")

</div>

Hey Everyone…

I have a little problem with AS3 at the moment… I have some code that is connecting to a radio stream and it playing the music. That much works… I also have a little dropdown box which lets the user switch the stream… Whenever I try to switch the stream, I’m getting this error…

Error: Error #2037: Functions called in incorrect sequence, or earlier call was unsuccessful.  
at flash.media::Sound/flash.media:Sound::\_load()

Which doesn’t make much sense… this is the code throwing the error…

```auto

            private function changeStation():void
            {
                sound.close();
                sound.load(new URLRequest(cbStations.selectedItem.url));
                getStreamInfo.send({streamUrl: cbStations.selectedItem.stationid});
            }

```

Anyways, I have tried to modify that block of code, but I can’t seem to get anything to work…

Does anyone have any suggestions?

Thanks,

–d
