Transfering variables from one movie clip to an external movie clip

i have two movie clips. one is supposed to recieve the value for the variable and pass it on to the other movie clip, which is called into the 1st one via the loadMovieNum() command.

I was trying to use global variables but i’m not able to get this to work because the 2nd one is tracing undefined when i use

trace(variable);

any suggestions?