Ver Mensaje Individual
  #4 (permalink)  
Antiguo 25/03/2004, 10:28
Avatar de TMeister
TMeister
Crazy Coder
 
Fecha de Ingreso: enero-2002
Ubicación: En la Oficina
Mensajes: 2.880
Antigüedad: 22 años, 3 meses
Puntos: 193
a ver si te sirve...

Los datos los meti en una array pero si dices que trabajas con XML sera muy sencillo adaptarlo....

Copia/Pega y prueba...
Probado en MX y MX2004



Código:
//Lista de Botones
lista_array = ["Uno", "Dos", "Tres", "Cuatro"];
//Campo de la Lista
this.createTextField("lista_txt", 2, 50, 50, 0, 0);
lista_txt.type = "dinamyc";
lista_txt.multiline = true;
lista_txt.autoSize = true;
lista_txt.border = true;
lista_txt.html = true;
//Campo destino
this.createTextField("destino_txt", 1, 150, 50, 0, 0);
destino_txt.type = "dinamyc";
destino_txt.autoSize = true;
destino_txt.border = true;
destino_txt.text = "Esto es lo que va a cambiar";
//Prototipo para hacer clicleable la palabra 
//Utilizando Asfunction.pasando como parametro el texto a mostrar
String.prototype.link = function() {
	temp_str = this;
	link_str = "<u><a href='asfunction:envia,"+temp_str+"' >"+temp_str+"</a></u>";
	return link_str;
};
//Funcion envia, esta es llamada por el Asfunction
function envia(str) {
	destino_txt.text = str;
}
//Metemos los Elementos de la lista al Campo lista
for (var a = 0; a<lista_array.length; a++) {
	lista_txt.htmlText += lista_array[a].toString().link();
}
Saludos!!