HELP! I am having the same problem as #2. If I create the textareas 
dynamically how do I loop through them later on to set their 
properties?

so basically I have some textareas with ids of
myText_0
myText_1
myText_2
myText_3
(etc)

and I have a loop of
for (var x:int=0; x<4; x++)
{
// insert AS3 code here
}

inside the loop I need to be able to say something like
myText_x.height = 50;

Anyone?

--- In [email protected], "debla1317" <[EMAIL PROTECTED]> 
wrote:
>
> That works perfect (THANK YOU), now I have two problems.
> 
> 1) If I would have created the textarea down in the MXML I would 
be 
> able to set a "change" property, but I can't figure out how to set 
> that in my actionscript code ta.change = doSomething(); does not 
> work.
> 
> 2) Later on I want to look back through the list of textarea 
fields 
> and properties and I think I am close by creating a new object, 
but 
> not quite there.
> 
> So I created another loop to reference the textarea objects:
> 
> for (var y:int = 0; y<returnPackage.length; y++)
> {
>  var packageObject:Object = "packageID_" + y.toString();
>  Alert.show(packageObject.text);
> }
> 
> Now my problem is that it is setting packageObject to a string 
> instead of accepting that I want packageObject to be equal to my 
> text field with the id of packageID_0, packageID_1, etc...
> 



Reply via email to