# Working with Audio Streams

**URL:** <https://forum.kirupa.com/t/working-with-audio-streams/319033>\
**Category:** flash\
**Created:** [February 7, 2011, 10:29am UTC](https://forum.kirupa.com/t/working-with-audio-streams/319033 "2011-02-07T10:29:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kugarweb](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@Kugarweb](https://forum.kirupa.com/u/Kugarweb)\
**Post date:** [February 7, 2011, 10:29am UTC](https://forum.kirupa.com/t/working-with-audio-streams/319033/1 "2011-02-07T10:29:30Z")

</div>

Hi there,

I’m currently working on a University project which involves importing audio streams into an array within Flash using AS3. At the moment I have all of the feeds importing successfully but I need some help with the next step of assigning identifiers (i.e. names) to each array item.

My plan is to link these assigned identifiers with a visualisation which will play accordingly when the stream is being imported.

Below is the current code I have. The links for the audio streams have had to be removed due to legal reasons.

```auto
var stream_arr:Array = new Array(
    stream_arr[0] = "URLHere",
    stream_arr[1] = "URLHere",
    stream_arr[2] = "URLHere",
    stream_arr[3] = "URLHere",
    stream_arr[4] = "URLHere",
    stream_arr[5] = "URLHere",
    stream_arr[6] = "URLHere",
    stream_arr[7] = "URLHere"
    );

for(var i:int = 0; i < stream_arr.length; i++) {
    var url_request:URLRequest = new URLRequest(stream_arr*);
    
    var sound:Sound = new Sound(url_request);
    var channel:SoundChannel = new SoundChannel();
    
    channel = sound.play();
}

```

Cheers,

KugarWeb
