Creating Object Names Dynamically Using A Loop

Hi AS3/FLEX professionals,

I am greenhorn in AS3/FLEX comming from AS2/FLASH8.

I have little problem with handling object arragements by creating IDnames dyamically within a FOR-loop. In AS2 it was simple to realize :

[INDENT][FONT=Courier New]FOR (var n=1 ; n<=10 ;n=n+1)[/FONT]
[FONT=Courier New]{[/FONT]
[INDENT][FONT=Courier New]root["object" + n]._visible = true;[/FONT]
[/INDENT][FONT=Courier New]}[/FONT]
[/INDENT]
[FONT=Arial][FONT=Verdana]Has someone of you profressionals any idea how the syntax has to be in AS3 ?[/FONT][/FONT]
The problem itself is simple, but simple enough for me to solve. :m:

I would be happy, if someone could give me a hint or better a solution.
Thanks for helping in advance.

Best regards from Sven.