Iterate through all the parents from movie clip

Hi

I would like to know is there a way to iterate through all parents in a display object.
I need to do this because i am loading swfs to application and swfs have different number of nested movieClips and i would like to be able to access loader properties like width and height dynamically from within any depth. How can i do that?

tnx
Luka