Access a var inside a child MC

Hi,

I’m new to AS3 and have a movie clip on the stage that contains a var,

the MC is called “myMC”
ie

var path = "my path";//this is in the first frame of myMC

I want to access this value from the parent element, in this case it is the stage.

So on the first frame on my stage i have,

 
trace(myMC.path);// this returns underfined

This would work in AS2.

Can i access this or do i need to create a class to access vars of a child?

Thanks in advance.

PS, i have had a good hunt arround for this simple problem but can only find solutions for accessing the stage properties from within a child grrr.

Cool