paths are ok, playing them without dynamically loading and placing into
arrays is fine. the trace of the array results in: [Object Object] four
times, however no play. here is my complete code, no errors, but no results:
when i give each sound object the same name, does that matter if there is a
pointer within an array element for each one? am i going about this wrong...
var mySounds:Array = new Array();
var sPath:String = "sound/loops/";
mySounds[0] = sPath + "Accident-Broadkas-8819.mp3";
mySounds[1] = sPath + "5-jakkob-2501.mp3";
mySounds[2] = sPath + "albert-Mikkel_M-204.mp3";
mySounds[3] = sPath + "delerium-queali-1634.mp3";
var sounds_array:Array = new Array();
var sBaseName:String = "sound";
// load all sounds in loop
function loadSounds() {
for (var i:Number = 0; i < mySounds.length; i++) {
sRef = _root;
var testSound:Sound = new Sound(sRef);
sounds_array.push(testSound);
testSound.loadSound(mySounds[i], False);
}
}
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com