No, you can't. This can only be used for looping over dynamic properties
of dynamic classes. To loop over the children of a
DisplayObjectContainer, you have to do
 
var n:int = numChildren;
for (var i:int = 0; i < n; i++)
{
    var child:DisplayObject = getChildAt(i);
   ...
}
 
Gordon Smith
Adobe Flex SDK Team

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of yigit boyar
Sent: Wednesday, February 20, 2008 11:01 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] finding all textareas



you can trace all children with;

var obj:Object;
for each(obj in this){
     if(obj is TextArea){
          //than do sth
     }
}

but i dont know it has anything to do with the currentState or not


On Feb 20, 2008 1:15 PM, Nikolas Hagelstein <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:


        Hi there,
        
        is there a way to determine all e.g. textareas within the
current state?
        
        cheers,
        Nikolas
        


 

Reply via email to