//
musica = new Sound;
//
pos = 0;
//
puesto = new Array;
tema = new Array;
interprete = new Array;
ruta = new Array
//
for(a=01;a<11;a++){
puesto[a] = _parent.miXML.firstChild.childNodes[pos].attributes.puesto;
tema[a] = _parent.miXML.firstChild.childNodes[pos].attributes.tema;
interprete[a] = _parent.miXML.firstChild.childNodes[pos].attributes.interprete;
ruta[a] = _parent.miXML.firstChild.childNodes[pos].attributes.ruta;
//
pos++
}
//
cont_01_txt.text = puesto[10];
tema_01_txt.text = tema[01]+" - "+interprete[01];
play_01_mc.onPress = function(){
musica.loadSound("temas/rank/"+ruta[01],false);
pre_01_mc.gotoAndPlay("on");
}
stop_01_mc.onPress = function(){
musica.stop();
}
//
cont_02_txt.text = puesto[9];
tema_02_txt.text = tema[02]+" - "+interprete[02];
play_02_mc.onPress = function(){
musica.loadSound("temas/rank/"+ruta[02],false);
pre_02_mc.gotoAndPlay("on");
}
stop_02_mc.onPress = function(){
musica.stop();
}
//
cont_03_txt.text = puesto[8];
tema_03_txt.text = tema[03]+" - "+interprete[03];
play_03_mc.onPress = function(){
musica.loadSound("temas/rank/"+ruta[03],false);
pre_03_mc.gotoAndPlay("on");
}
stop_03_mc.onPress = function(){
musica.stop();
}
//
cont_04_txt.text = puesto[7];
tema_04_txt.text = tema[04]+" - "+interprete[04];
play_04_mc.onPress = function(){
musica.loadSound("temas/rank/"+ruta[04],false);
pre_04_mc.gotoAndPlay("on");
}
stop_04_mc.onPress = function(){
musica.stop();
}
//
cont_05_txt.text = puesto[6];
tema_05_txt.text = tema[05]+" - "+interprete[05];
play_05_mc.onPress = function(){
musica.loadSound("temas/rank/"+ruta[05],false);
pre_05_mc.gotoAndPlay("on");
}
stop_05_mc.onPress = function(){
musica.stop();
}
//
cont_06_txt.text = puesto[5];
tema_06_txt.text = tema[06]+" - "+interprete[06];
play_06_mc.onPress = function(){
musica.loadSound("temas/rank/"+ruta[06],false);
pre_06_mc.gotoAndPlay("on");
}
stop_06_mc.onPress = function(){
musica.stop();
}
//
cont_07_txt.text = puesto[4];
tema_07_txt.text = tema[07]+" - "+interprete[07];
play_07_mc.onPress = function(){
musica.loadSound("temas/rank/"+ruta[07],false);
pre_07_mc.gotoAndPlay("on");
}
stop_07_mc.onPress = function(){
musica.stop();
}
//
cont_08_txt.text = puesto[3];
tema_08_txt.text = tema[08] +" - "+interprete[08];
play_08_mc.onPress = function(){
musica.loadSound("temas/rank/"+ruta[08],false);
pre_08_mc.gotoAndPlay("on");
}
stop_08_mc.onPress = function(){
musica.stop();
}
//
cont_09_txt.text = puesto[2];
tema_09_txt.text = tema[09]+" - "+interprete[09];
play_09_mc.onPress = function(){
musica.loadSound("temas/rank/"+ruta[09],false);
pre_09_mc.gotoAndPlay("on");
}
stop_09_mc.onPress = function(){
musica.stop();
}
//
cont_10_txt.text = puesto[1];
tema_10_txt.text = tema[10]+" - "+interprete[10];
play_10_mc.onPress = function(){
musica.loadSound("temas/rank/"+ruta[10],false);
pre_10_mc.gotoAndPlay("on");
}
stop_10_mc.onPress = function(){
musica.stop();
}
//
stop();
que lo traigo de un xml, el problema en cuestion es que carga todo lo mas bien pero me tira un error y no hay forma de saber que es ese error.
El error que tira es el siguiente:
**Error** Symbol=temas, layer=as, frame=1:Line 91: ']' expected
tema_08_txt.text = tema[08] +" - "+interprete[08];
Total ActionScript Errors: 1 Reported Errors: 1
QUIEN ME PUEDA AYUDAR SE LO AGRADEZO UN MONTON POR QUE LA VERDAD ES QUE ME ESTOY ROMPIENDO LA CABEZA Y NO SE QUE PUEDE SER.
MUCHAS GRACIAS!!!
