Loading into empty movie clip

******Hi. Can anyone help me work something like this on release command into the prexisting code further below? I’m not sure how, and everything I try doesn’t seem to work. Basically I have an empty “mc” on the stage, but am not sure how to change the actionscript so the ‘on release’ function recognizes the target mc. (I’m using the same movie clip name.) **


}
on (release) {
    _root.mainstageMC.loadMovie();

} 

Following are 2 portions of prexisting code in which I’ld like to specify that the pages open within the “mainstageMC” on the release function.


newBut.onRelease = function() {
            if (this.submenuCnt>0) {
                var butNum:Number = new Number(this._name.substr(3, 1));
                this.createSubMenu(butNum);
                for (i=0; i<mainMenus.length; i++) {
                    if (i<butNum+1) {
                        _root["but"+i].getPos(_root["but"+i].y);
                    } else {
                        _root["but"+i].getPos(_root["but"+i].y+this.submenuCnt*20);
                    }
                }
            } 

MovieClip.prototype.createSubMenu = function(buttonNumber:Number):Void  {
    clearSubMenus();
    subMenus = mx.xpath.XPathAPI.selectNodeList(mainMenus[buttonNumber], "/menu/submenu");
    var butNum:Number = new Number(this._name.substr(3, 1));
    for (i=0; i<subMenus.length; i++) {
        subBut = _root.attachMovie("submenu", "subMenu"+i, Math.random()*999999);
        subBut._alpha = 0;
        subBut._x -= i*5;
        subAppear(subBut, (i+3), 12);
        subBut._y = this.y+this._height+(subBut._height+3)*i;
        subBut.txt.text = subMenus.attributes.txt;
        subBut.link = subMenus.attributes.link;
        subBut.but.onRelease = function() {
            getURL(this._parent.link);
        };
    }
}; 

Can anyone please help…? I would be very grateful.