swapChildren not working


I have two movie clips, clip1 is created through the authoring tool and given the instance name “child1”, and clip2 is created on the timeline with actionscript that loads an external .swf into it.

Subsequently child2 gets placed on top of child1. So naturally I think that if I write:

this.swapChildren(child1, child2);

I’d get the first one over the second one? Nope, doesn’t happen. Have I misunderstood something? I couldn’t find anyone with this problem here or anywhere else which leads me to believe I’m making some fundamental error.

Any hints are appreciated.