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.
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