Weird problem with LineTo

I have a problem with referring to something…

I create a an array, a timer and movieclip variable… then…

containerMC.graphics.lineStyle (0.1, 0x000000);

for(var s=0 ;s<2;s++){
    addChild(containerMC)
    dotArray.push(containerMC)
}

function timedFunction(eventArgs:TimerEvent):void {
    for(var s=0 ;s<dotArray.length;s++){
        dotArray[s].graphics.lineTo (Math.random()*400,Math.random()*400);
    }
}

For some reason it refers to the same movieclip again and again even though it should be refering to a different one (I’ve traced ‘s’ and it is definitely increasing). What I get is two new sections of one line being drawn every timer event. I want one line being added to each two separate lines.

I really have no idea here… I’ve tried making two arrays, putting one movieclip inside another to seperate everything a little more, but the same thing keeps happening.

Any help would be wonderful