What weird results are you getting?
There is no reason to put it into a movieclip, unless you want to.
For some reason the swapDepths method got left out of the TextField prototype. You can swap their depths by adding this line to the first place you have code—you only need this part once:
You can then use swapDepths with textfields.
And, yes, "weird results" doesn't really explain anything.