Este el codigo del action si le descomento me lo trae, pero de txt no me levanta
Código :
_root.Ins_cuadrado._visible = false;
/*
texto1="Home";
texto2="Quienes somos";
texto3="Contactenos";
texto4 ="Servicios";
texto5 ="Productos";
*/
var datos = new LoadVars();
datos.onLoad = function(ok) {
if (ok) {
for (var j = 1; j<6; j++) {
pos = "texto"+j;
texto = (Ins_caja.text=datos.pos);
}
}
tamaño = 0;
////////////////////////////////////////////////////
for (var i = 1; i<6; i++) {
bot = "Ins"+i;
nom_bot = "texto"+i;
_root.Ins_cuadrado.duplicateMovieClip(bot, i+10);
_root[bot]._y = _root[bot]._y+20*i;
_root[bot].texto = eval(nom_bot);
_root[bot].Ins_caja.autoSize = true;
if (_root[bot].Ins_caja._width>tamaño) {
tamaño = _root[bot].Ins_caja._width;
}
}
////////////////////////////////////////////////////////////////
for (var i = 1; i<6; i++) {
bot = "Ins"+i;
_root[bot].Ins_fondo._width = tamaño+15;
}
};
datos.load("texto3.txt");
Esto es lo que dice el txt:
&texto1=Home&texto2=Quienes Somos&texto3=Contactenos&texto4=Servicios&texto5=Productos
los botones me los genera pero me pone undefined, y tambien necesitaria saber como saber cuantas variables hay para que haga tanta cantidad de botones.
Please, es medio uRGENTE. Gracias
