proto = null;
// see if we find one called 'member'
for(int i=0; i<members.length; i++)
{
Variable m = members[i];
String memName = m.getName();
if (memName.equals(member) && !tree.containsKey(m))
{
e.add(name);
e.add(result);
e.add(m);
tree.put(m, name+"."+memName); //$NON-NLS-1$
done = true;
}
else if (memName.equals("__proto__")) //$NON-NLS-1$
proto = members[i].getValue();
}
}
// now traverse other mcs recursively
done = false;
proto = result;
while(!done && proto != null)
{
Variable[] members = proto.getMembers(m_session);
proto = null;
// see if we find an mc
for(int i=0; i<members.length; i++)
{
Variable m = members[i];
String memName = m.getName();
// if our type is NOT object or movieclip then we are done
if (m.getValue().getType() != VariableType.OBJECT && m.getValue().getType() != VariableType.MOVIECLIP)
;
else if (m.getValue().getId() != Value.UNKNOWN_ID)
dumpTree(tree, e, name, m.getValue(), member);
else if (memName.equals("__proto__")) //$NON-NLS-1$
{
proto = m.getValue();
// name = name + ".__proto__";
}
}
}
}