SetVariable in a nested MovieClip

How does one set a variable inside a nested movie clip?

I’ve created a dynamic text box at the root of my movie and given it a var name. It works fine.

However, when I dynamically load an SWF into my main movie using LoadMovie(“myotherfile.swf”) that contains the variable file, it is no longer accessible.

I’ve tried using:

window.document.myMovie.SetVariable("_root.nestedSWF.myvar", “test”);
(where nestedSWF is the name of the nested movie clip)

No success. Help on this would be greatly appreciated as always…