Actionscript 1.0

I'm attaching a movie made at runtime ("box_mc").

This works....

code:

function Box(x_pos,y_pos,dep) {
attachMovie("box_mc","aName", dep);
aName._x = x_pos;
aName._y = y_pos;
}
bla2 = new Box(50,50,2);
bla1 = new Box(100,100,1);



This doesn't (level property "dep" lower on first attach), the x_pos and y_pos aren't recognised.

code:

function Box(x_pos,y_pos,dep) {
attachMovie("box_mc","aName", dep);
aName._x = x_pos;
aName._y = y_pos;
}
bla1 = new Box(50,50,1); // changed
bla2 = new Box(100,100,2); // or swapped



Am I missing something basic here?