This content has been marked as final. Show 4 replies
Could you please provide more details? It isn't clear to me what you are trying to do.
I think this is what you're asking...
<mx:Application .... etc >
<mx:Label id="label1" text="My Label"/>
<mx:Label id="label2" text="My Second Label"/>
You can access them two ways:
private function someFunction():void
label1.text = "new label";
label2.text = "new label2";
var labels:Array = getChildren();
//loop thru array
There are several ways of getting to components, depending on the needs of your code.
sorry, double post.
You may also find this technique helpful:
this["label"+i].text = "New text for label "+i;