X & Y Coordinates of an attached movie from an array

I just want each instance of the movie clip from my collect_array to show up in a different x & y position.

Why isn’t this working? (the collect_array is defined as an array elsewhere). It displays the first item in the array once (or it’s displaying all the items on top of each other).

Any help is greatly appreciated.


if (collect_array.length > 0) {
		var xplace = 50;
		var yplace = 50;
		for (var i = 0; i < collect_array.length; i++) {
			// start to show the first collected
			trace("collect name " + collect_array*);
			requestedPieceNumber = "request"+i;
			_root.mainCont.cartItems.attachMovie(collect_array*, requestedPieceNumber, 1 );
			trace("i value "+i);
			this[requestedPieceNumber]._x = 0+xplace;
			this[requestedPieceNumber]._y = 0+yplace;
			trace("requestedPieceNumer " + requestedPieceNumber);
			trace("x value " + xplace);
			trace("y value " + yplace);
			xplace=xplace+50;
			yplace=yplace+50;
		}
	}