[font=Arial][size=2]i’ve a clip called set1MC. Inside the clip i run a code that looks like[/size][/font]
[font=Arial][size=2]code[/size][/font]
[font=Arial][size=2]____________________________________[/size][/font]
[font=Arial][size=2]trackNames = linkageIDs = new Array(“s1 - 21 coolpop”,“s1 - 21 hats”,“s1 - 21 piano”,“s1 - 21check this”,“s1 - Drum loop”,“s1 - Grif gui”,“s1 - hh drum loop”,“s1 - latin nova”,“s1 - latin1 trumpet”,“s1 - latin2 trumpet”,“s1 - mj jazz drum”,“s1 - mj_bass lick”,“s1 - under drum”);[/size][/font]
[font=Arial][size=2]
[/size][/font][font=Arial][size=2]set1 = new Object(); //associative array[/size][/font]
[font=Arial][size=2]function createSoundObjects(nms,IDs){
for (i=0; i <= nms.length-1; i++) {
mcName = “soundObjectMc” + i; // create unique mc instance name
attachMovie(“empty mc”,mcName,i); // attach a empty mc
set1[nms*] = new Sound(eval(mcName)); // create a sound object
set1[nms*].attachSound(IDs*); // attach sound
//set1[nms].start(0,999); // just test code to start sound object in an associative array >>>>>>line1*
}
}
createSoundObjects(trackNames,linkageIDs);
//this.set1[“s1 - 21 coolpop”].start(0,999); >>>> line 2
stop();[/size][/font]
[font=Arial][size=2]__________________________________________[/size][/font]
[font=Arial][size=2]when i un-comment either line 1 or line 2 which is located inside set1MC… it works and plays my sound objs; however, when I’m in the root and type in a line like[/size][/font]
[font=Arial][size=2]this.set1MC.set1[“s1 - Drum loop”].start(0,999);[/size][/font]
[font=Arial][size=2]or[/size][/font]
[font=Arial][size=2]_root.set1MC.set1[“s1 - Drum loop”].start(0,999);[/size][/font]
nothing plays. Can anybody pls. help asap? I’ve got a presentation tomorrow. Thanks
d