Help with _root

I’m creating a dynamic set of buttons who’s properties are loaded from an external xml file. All works fine until it’s loaded within another flash application. I’ve read through the FAQ on the matter and having no luck with point two (_lockroot). I’m quite new to flash although coming form javascript I’ve a good grasp of actionscript. If someone could help with either of the two other method presented in the FAQ that would be great.


var myXML = new XML();
myXML.ignoreWhite = true;
myXML.load('links.xml');
myXML.onLoad = function(success) {
 if (success) {
  var links = this.firstChild.childNodes;
  for (i=0; i<links.length; i++) {
   var btn = _root.attachMovie('mc_Button', 'mc_Button'+i, _root.getNextHighestDepth(), {_alpha:0});
   btn.url = links*.attributes.url;
   btn._x = parseInt(links*.attributes.left);
   btn._y = parseInt(links*.attributes.top);
   btn._width = parseInt(links*.attributes.width);
   btn._height = parseInt(links*.attributes.height);
   btn.onPress = function() {
    getURL(this.url, '_blank');
   };
  }
 } else {
  trace("XML didn't load.");
 }
};