Hi,
I am trying to my head around Loops and I have 3 MCs which I want positioned one above the other according the mcs before it’s height.
var clipsArray:Array = new Array("mc1", "mc2", "mc3");
trace(clipsArray);
var clipsMargin:Number = 1;
for(var i:uint = 0; i<=2; i++)
{
if(i == 0)
{
clipsArray*.y = 0;
} else
{
clipsArray*.y = clipsArray[i-1].y + clipsArray[i-1].height + clipsMargin
}
}
Which is returning this error:
ReferenceError: Error #1056: Cannot create property y on String.
at test1_fla::sqaure_1/frame1()
Can anyone explain what is wrong here??
Phil