Syntax error

I have a code like this, but it I can’t get it right. Why can’t I use mcMain.“contentItem”+i.item_name ? If I use mcMain.contentItem1.item_name then it works. How should I make it correct to use i variable?


mcMain.attachMovie("contentSubtitle", "contentItem"+i, mcMain.getNextHighestDepth(), {_y:mcMain.height, _x:0});
mcMain."contentItem"+i.item_name = "some text";
i++;