Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/11/2008, 08:57
Avatar de chiviwalker
chiviwalker
 
Fecha de Ingreso: marzo-2004
Ubicación: Alicante
Mensajes: 55
Antigüedad: 20 años, 1 mes
Puntos: 0
Respuesta: problema loadvars

Bueno, ya he solucionado el problema cargando desde un xml los datos.
Pero ahora tengo otro problema.

Cuando recibo los datos del xml compruebo si uno de los valores de cada nodo único es "0" o "1" colorea un moviclip de la siguiente manera:

Código:
if (this.firstChild.childNodes[i].childNodes[j].attributes.activo==1) {
  myColor=new Color(cuadrado);
if (this.firstChild.childNodes[i].childNodes[j].attributes.pabellon==1) {
  myColor.setRGB(0x006699);
} else if (this.firstChild.childNodes[i].childNodes[j].attributes.pabellon==2) {
  myColor.setRGB(0xAD1400);
} else if (this.firstChild.childNodes[i].childNodes[j].attributes.pabellon==3) {
  myColor.setRGB(0x01AC19);
} else if (this.firstChild.childNodes[i].childNodes[j].attributes.pabellon==4) {
  myColor.setRGB(0xFF6600);
} else {}
var texto=this.firstChild.childNodes[i].childNodes[j].attributes.numero;
_root.cuadrado.createTextField(texto, 1, 0, 0, 25, 25); 
this.texto.type = "dynamic";
this.texto.border = false; 
this.texto.html = true;

myformat = new TextFormat();
myformat.color = "0xffffff";
myformat.font = "Verdana";
myformat.size = 11;
					
this.texto.htmlText = ""+this.firstChild.childNodes[i].childNodes[j].attributes.numero+"";
this.texto.setTextFormat(myformat);

} else {}
Es decir a la vez que se colorea el clip de un color determinado se crea un campo de texto dinamico que se rellena con un valor del xml "numero", pero esto es lo que no me funciona.
¿Alguien me puede echar una mano?
Muchas gracias.
__________________
------------------------------------------
www.inetmarket.es