thanks.
solved one of my problems...
see you!
On Jun 3, 2008, at 4:54 PM, Gordon Smith wrote:
Make an Array instance variable
<mx:Script>
public var newTexts:Array /* of TextArea */ = [];
</mx:Script>
After creating a new TextArea, store a reference to it in the Array:
var newText:TextArea = new TextArea();
...
newTexts[countObjects] = newText;
Access the text in the ith TextArea as
newTexts[i].text
Gordon Smith
Adobe Flex SDK Team
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Tiago Santarosa
Sent: Tuesday, June 03, 2008 12:19 PM
To: [email protected]
Subject: [flexcoders] Dynamic TextArea creation
Hi,
I'm trying to create an application that is the dynamic creation of
fields (textarea), this is okay! but I need to have access to these
textareas to get the values to write in a file. How to access these
values?
This is the code for creation of the field:
var newText:TextArea = newTextArea();
newText.styleName = "textNew";
newText.id = "newText" + countObjects;
newText.name = "newText" + countObjects;
newText.width = 150;
newText.height = 70;
newText.x = pt.x + 20;
newText.y = pt.y + 20;
Sorry for bad English
Thanks, Tiago.