Access loader.swf from loaded.swf

i have two swfs. i load a swf(child) into another(parent). but i cannot call any method from parent’s document class. when i compile child swf it gives me some compile-time errors. because the function that i want to call located in parent’s Document Class.

how can i access to parent methods and variables(loader swf) from child (loaded swf)?

thank you in advance.