Previously the below worked for AS2

Code:
for(var i=0; i< rankArray.length; i++) {
		var item:Object = this.itemMain.attachMovie("item", "item"+i, i);
		item.alpha = 60;
		item.ranked = false;
		item.indexValue = (randomArray[i]+1)*2;
Simply adding addChild comes back with 2 errors:

Scene 1, Layer 'as', Frame 1, Line 47 1067: Implicit coercion of a value of type String to an unrelated type flash.displayisplayObject.

and

Scene 1, Layer 'as', Frame 1, Line 47 1137: Incorrect number of arguments. Expected no more than 1.

How do I get this working with the addChild function?

Thanks

Eddie