for(prop in _root){ var smth = _root[prop]; if(typeof smth == "object") { for(inner in smth){ if(inner == "text") trace(smth + " is textField"); } } }