From: Matthew <ma...@di...> - 2000-10-30 18:17:47
|
What I am wanting to do is check if a child exists within a parent layer.. I have been looking at the children array and understand that a child exists when it is found in this array.. but what I am wanting to do is check weather a child is within a specific parent layer and if so manipulate that child... and visa versa.. if it doesn't exist within that parent layer then manipulate it.. so what I found was the function called .getParentComponent which I am assuming does what I am wanting.. but I am not sure how to call this.. I am doing mychild.getParentComponent when the child is on a parent layer, this returns UNDEFINED.. So any help would be much appreciated.. I am assuming that I use the array but how do I make sure that I am referencing the correct child when there are multiple parents with children... Cheers Matt |