Foros del Web » Creando para Internet » Flash y Actionscript »

boton y xml

Estas en el tema de boton y xml en el foro de Flash y Actionscript en Foros del Web. Intente pero no puedo lograrlo, me perdi..Tengo un xml el cual uno de sus datos es un link que quiero que se pueda pasar a ...
  #1 (permalink)  
Antiguo 04/03/2010, 08:44
Avatar de kukynet  
Fecha de Ingreso: noviembre-2008
Mensajes: 105
Antigüedad: 15 años, 5 meses
Puntos: 2
boton y xml

Intente pero no puedo lograrlo, me perdi..Tengo un xml el cual uno de sus datos es un link que quiero que se pueda pasar a un boton para ejecutarlo.Ayuda plese!!!o sea al hacer clic en botoncito que valla a esa url.
Gracias
Código :

myXML = new XML(); myXML.ignoreWhite = true; myXML.ref = this; myXML.onLoad = function(succes) { if (succes) { var root = this.firstChild; nodes = root.childNodes; for (var i = 0; i<nodes.length; i++) { this.ref["Title_txt"+i].text = nodes[i].attributes.name; subnodes = nodes[i].childNodes; this.ref["Comments_txt"+i].text = subnodes[0].firstChild.toString(); this.ref["holder_mc"+i].loadMovie(subnodes[1].firstChild.toString()); //esto// linka = this.firstChild.childNodes[0].attributes.url; } } else { trace("Error loading XML document"); } }; botoncito.onRelease = function() { getURL(linka, "_blank"); }; stop();



EL XML:


Código :

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE data[ <!ELEMENT title (comments, image,link)> <!ATTLIST title name CDATA #REQUIRED> <!ELEMENT comments (#PCDATA)> <!ELEMENT image (#PCDATA)> ]> <data> <title name="PLANETA: Planeta 6"> <comments>El texto que queremos poner aca ! </comments> <image>earth1.jpg</image> <link url = "http://www.kukynet.com.ar" > </link> </title> <title name="TEMA: Metrito"><comments>RAZA: Ikus</comments> </title> </data>

clabLevel: 31
Argentina
__________________
kukynet
Rock Psokedélico

Etiquetas: xml, botones
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 14:45.