Hola amigos necesito vuestra ayuda con esto, tengo una barra de menus de 7 botones que al posicionarse sobre cada uno hace una animación cada letra (muy chula), bien al hacer on release sobre cada uno, este va a buscar el código en un archivo externo XML que se edita con el notepad, en el que pones el html y la abre, en este caso todos los botones abren 133b.html,

Código :

<?xml version="1.0" encoding="utf-16"?>
<Link>   
         <main_menu>      
               <manu01>133b.html</manu01>
               <manu02>133b.html</manu02> 
               <manu03>133b.html</manu03>
               <manu04>133b.html</manu04>
               <manu05>133b.html</manu05>
               <manu06>133b.html</manu06>
               <manu07>133b.html</manu07>
         </main_menu>

Mi problema es que necesito que al pulsar el boton me llame a un swf externo y me lo meta en mi página utilizando un mc contenedor, cuando el código está dentro de la pagina utilizo normalmente esto:

Código :

on (release)
{       
_parent.contenedor.loadMovie("clientes.swf", 1);
      }

Pero el sistema de xml externo no se como hacerlo, ahora me abre un html en una página nueva no un swf dentro de la mia, he intentado crear 7 botones para hacerlo internamente en el fla
pero no he podido,

Te pongo el código que tiene el fla, la escena1 tiene dos capas de aciones la prinera tiene esto:

Código :

numOfMenu = 7;
// Number of Menus

targetFrame = new Array();
targetFrame[1] = "_self";
targetFrame[2] = "_self";
targetFrame[3] = "_self";
targetFrame[4] = "_self";
targetFrame[5] = "_self";
targetFrame[6] = "_self";
targetFrame[7] = "_self";
// Main target frame

_global.subBtnTotal = new Array();
subBtnTotal[1] = 0;
subBtnTotal[2] = 0;
subBtnTotal[3] = 0;
subBtnTotal[4] = 0;
subBtnTotal[5] = 0;
subBtnTotal[6] = 0;
subBtnTotal[7] = 0;
//


La segunda tiene esto:

Código :

System.useCodepage = true;
mainLink = new Array();
_global.subLink = new Array();
myXML = new XML();
myXML.load("link.xml");
myXML.ignoreWhite = true;
myXML.onLoad = function(temp) {
   for (i=1; i<=numOfMenu; i++) {
      mainLink[i] = this.firstChild.firstChild.childNodes[i-1].firstChild;
      mainLink[i] = linkClean(mainLink[i]);
      subLink[i] = new Array();
      if (this.firstChild.childNodes[1].childNodes[i-1].hasChildNodes()) {
         for (k=1; this.firstChild.childNodes[1].childNodes[i-1].childNodes[k-1].hasChildNodes(); k++) {
            subLink[i][k] = this.firstChild.childNodes[1].childNodes[i-1].childNodes[k-1].firstChild;
            subLink[i][k] = linkClean(subLink[i][k]);
         }
      }
   }
};
_global.active = pageNum;
_global.subActive = subNum;
_global.over = active;
//
gap = 10;
textLength = new Array();
counter = 0;
//
for (i=1; i<=numOfMenu; i++) {
   //
   this[i].mainText.gotoAndStop(i);
   this[i].stMainText = String(this[i].mainText.dis.text);
   this["mainText"+i] = this[i].stMainText+"1234567defghijklmnopqstuvdefghijklmnopqstuvwxyz";
   textLength[i-1] = this[i].stMainText.length;
   //
   this[i].bg._width = 80;
   this[i].bg.onRollOver = function() {
      _global.over = this._parent._name;
      interval = setInterval(loopHye, gap);
      this._parent.swapDepths(1);
   };
   this[i].bg.onRollOut = this[i].bg.onDragOut=function () {
      counter = 0;
      _global.over = active;
      clearInterval(interval);
      this._parent.mainText.dis.text = this._parent.stMainText;
   };
   this[i].bg.onRelease = function() {
      getURL(mainLink[this._parent._name], targetFrame[this._parent._name]);
      
   };
   this[i].onEnterFrame = function() {
      for (k=1; k<=subBtnTotal[this._name]; k++) {
         if (this[k] != undefined && this[k].onRelease == undefined) {
            subBtnFunc(this[k]);
         }
      }
      if (over == this._name) {
         this.direction = "next";
         this.nextFrame();
      } else {
         this.direction = "prev";
         this.prevFrame();
      }
   };
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
_global.subBtnFunc = function(that) {
   that.onRollOver = function() {
      this._parent.temp = this._name;
      if (this._parent.direction == "next") {
         if (this._parent._name != active || this._name != subActive) {
            clearInterval(this._parent.id);
            _global.over = this._parent._name;
            if (this._parent.first) {
               this._parent[subActive].gotoAndPlay("out");
               this._parent.first = false;
            }
            this.gotoAndPlay("over");
         }
      }
   };
   that.onRollOut = function() {
      if (this._parent._name == active) {
         if (this._name != subActive) {
            this._parent.id = setInterval(this._parent.aa, 10, this._parent);
            this.gotoAndPlay("out");
            this._parent.temp = subActive;
         }
      } else {
         this.gotoAndPlay("out");
      }
      _global.over = active;
   };
   that.onRelease = function() {
      var temp1 = this._parent._name;
      var temp2 = this._name;
      var temp3 = temp1+temp2;
      var frame = "_self";
      if (temp3 == 00) {
         frame = "_blank";
      }
      getURL(subLink[temp1][temp2], frame);
   };
};
function loopHye() {
   var temp1 = eval("mainText"+over).substr(counter, textLength[over-1]);
   _root[over].mainText.dis.text = temp1;
   counter++;
   if (counter>eval("mainText"+over).length-textLength[over-1]) {
      counter = 0;
      var temp1 = eval("mainText"+over).substr(counter, textLength[over-1]);
      _root[over].mainText.dis.text = temp1;
      clearInterval(interval);
   }
}
function linkClean(temp) {
   temp = String(temp);
   for (var i = 0; i<temp.length; i++) {
      if (temp.substr(i, 5) == "apos;") {
         temp = temp.substr(0, i-1)+"'"+temp.substr(i+5);
      }
   }
   for (var i = 0; i<temp.length; i++) {
      if (temp.substr(i, 4) == "amp;") {
         temp = temp.substr(0, i-1)+"&"+temp.substr(i+4);
      }
   }
   return temp;
}


Luego cada boton es un mc en el que está la animación mas este codigo:

Código :

function aa(bb) {
   first = true;
   bb[subActive].gotoAndPlay(2);
   clearInterval(id);
}
if (this._name == active) {
   id = setInterval(aa, 10, this);
   if (!subActive) {
      temp = 0;
   } else {
      temp = subActive;
   }
} else {
   temp = 0;
}
//
bar.onEnterFrame = function() {
   if (temp) {
      this._x += (this._parent[temp]._x-this._x)/4;
      this._alpha += (100-this._alpha)/10;
   } else {
      this._x += (-100-this._x)/4;
      this._alpha += (0-this._alpha)/10;
   }
};


Igual es muy facil pero no tengo ni idea. :oops: