Select all elements

MC_text.addChild(stage.getChildByName("mainLink"+(i-1).toString()));

with the above line I can select all elements minus one…
I need to select all children.
But If i place i instead of (i-1) -[COLOR=“Red”] i [/COLOR] - I get an error.
BTW “mainLink” comes from an XML file…
Any suggestions?