Accessing a property?

I’m having a small problem here.

I’m attaching an array of objects to the stage, each with a size, x and y values. I have 2 values for the y property (y1 and y2).

So when I attach the objects to the stage y property takes the y1 values. When I want to change the y value to y2 nothing happens:

for (i=numChildren-1; i>=0; i–) {
getChildAt(i).y=y2;
}

Is this the correct way of doing it?

Thanks in advance.