Array.slice()

Hi,

i have an fileArray consisting of 6 mc’s. i have a second containerArray that consists of 3 containermcs.

i would like to obtain the following :

containerArray[0] = containerMC0;
containerArray[1] = containerMC1;
containerArray[2] = containerMC2;

containerMC0.addChild(fileArray[0]);
containerMC0.addChild(fileArray[1]);

containerMC1.addChild(fileArray[2]);
containerMC1.addChlid(fileArray[3]);

containerMC2.addChild(fileArray[4]);
containerMC2.addChild(fileArray[5]);

im not very good at writing loops. So when this is done, i could go and say :

addChild(containerArray[0])

this would give me containerMC0 consisting of the mc’s fileArray[0] & [1]

any ideas on how i could do this ?