AS2: Dynamically referencing ROOT

Hi All,
I am having trouble dynamically changing the reference to root in my movies. Here’s what I’m trying to do: I have a main movie(_level0.mainMovie) that I am loading external .swfs into. However, I want to be able to test the child movie clips without having to load them into the mainMovie(for testing purposes). In such a case, the child clip would be at _level0 or _root. I would like to add some code to the child clips to test whether they are the _level0 clip, if not, then I want to change their reference to _root. Here’s what I’ve come up with, which doesn’t seem to work:

[COLOR=#993300]

[COLOR=#993300]function[/COLOR] testLevel[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR]
             [COLOR=#f000f0]*//This code goes into each child clip to see if it has been loaded into another clip*[/COLOR]
    [COLOR=#993300]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#993300]this[/COLOR][COLOR=#000000])[/COLOR];
    [COLOR=#993300]if[/COLOR][COLOR=#000000]([/COLOR][COLOR=#993300]this[/COLOR] == _level0[COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR] [COLOR=#f000f0]*//If this is the _level0 clip*[/COLOR]
        rootModifier = [COLOR=#0000ff]""[/COLOR];
    [COLOR=#000000]}[/COLOR][COLOR=#993300]else[/COLOR][COLOR=#000000]{[/COLOR] [COLOR=#f000f0]*//If this is loaded into another clip, change rootModifier*[/COLOR]
        rootModifier = [COLOR=#0000ff]"mainMovie"[/COLOR];
    [COLOR=#000000]}[/COLOR]
    [COLOR=#993300]trace[/COLOR][COLOR=#000000]([/COLOR]rootModifier[COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR]
testLevel[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];

[/COLOR]

…So that part works fine. Here is an example of how I have incorporated the rootModifier:

 i = [COLOR=#000000]0[/COLOR];
someClip.[COLOR=#993300]duplicateMovieClip[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]"duplicateClip"[/COLOR]+i, [COLOR=#993300]this[/COLOR].[COLOR=#993300]getNextHighestDepth[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#993300]_root[/COLOR][COLOR=#000000][[/COLOR]rootModifier[COLOR=#000000]][/COLOR][COLOR=#000000][[/COLOR][COLOR=#0000ff]"duplicateClip"[/COLOR]+i[COLOR=#000000]][/COLOR].[COLOR=#993300]_y[/COLOR] += [COLOR=#000000]30[/COLOR];
[COLOR=#f000f0]*//If loaded into a parent clip, I should be able to access the duplicated clip using:*[/COLOR]
[COLOR=#f000f0]*//     _root.mainMovie.duplicateClip0 //DOESN'T WORK*[/COLOR]
[COLOR=#f000f0]*//If not loaded into another clip, I should be able to access the duplicated clip using*[/COLOR]
[COLOR=#f000f0]*//     _root.duplicateClip0 //DOES WORK?!!?! *[/COLOR]

Have I missed something? Is it possible to do this? Thanks in advance for any insight!!