Y XML Carga hipervínculo

  • shadyshotton
  • Born
  • Born
  • No Avatar
  • Registrado: Sep 22, 2008
  • Mensajes: 1
  • Status: Offline

Nota Septiembre 22nd, 2008, 3:50 am

Estoy cargando un conjunto de imágenes en video clips enmascarada a través de un archivo XML y, a continuación, intentar el hipervínculo movieclip con una URL obtenidos a partir de XML.

El problema que estoy teniendo es que la 1 ª, 3 ª, 5 ª y 7 ª clips no se comportan como si tienen un hipervínculo que se les otorga a los demás están bien.

Estoy seguro de im faltaba algo realmente obvio, pero para la vida de mí no lo veo...alguien me puso fuera de mi misey por favor, se adjunta el código, quiero saber si usted desea que todos los archivos y yo a través de correo electrónico.

¡Salud!

Adjuntar Código

_global.image = new Array ();
_global.desc = new Array ();
_global.web = new Array ();
_global.del = new Array ();

xmlData = new XML ();
xmlData.ignoreWhite = true;
xmlData. onLoad = loadXML;
xmlData.load ( "images.xml");

_root.m0.onRelease = function () (
getURL ( "http://www.yell.com", "_blank");
);

_root.m1.onRelease = function () (
getURL (web [1], "_blank");
);

_root.m2.onRelease = function () (
getURL (web [2], "_blank");
);

_root.m3.onRelease = function () (
getURL (web [3], "_blank");
);

_root.m4. onRelease = function () (
getURL (web [4], "_blank");
);

_root.m5.onRelease = function () (
getURL (web [5], "_blank");
);

_root.m6.onRelease = function () (
getURL (web [6], "_blank");
);

_root.m7.onRelease = function () (
getURL (web [7], "_blank");
);


función loadXML (cargado) (
if (cargado) (
XmlNode = this.firstChild;

total = xmlNode.childNodes. longitud;
for (i = 0; i <total; i + +) (
imagen [i] = xmlNode.childNodes [i]. childNodes [0]. firstChild.nodeValue;
desc [i] = xmlNode.childNodes [i]. childNodes [1]. firstChild.nodeValue;
web [i] = xmlNode.childNodes [i]. childNodes [2]. firstChild.nodeValue;

loadMovie (imagen [i] ", con" + i);
_ROOT [ "t" + i]. desc = texto [i];

trace (web [i]);

)
) Else (
content = "el archivo no se carga!";
)
);
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Septiembre 22nd, 2008, 3:50 am

Publicar Información

  • Total de mensajes en este tema: 1 mensaje
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 94 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC