Ver Mensaje Individual
  #8 (permalink)  
Antiguo 15/04/2008, 10:00
Avatar de SinguerInc
SinguerInc
 
Fecha de Ingreso: octubre-2007
Ubicación: Barcelona, España
Mensajes: 551
Antigüedad: 16 años, 6 meses
Puntos: 5
Re: Problema para ver pelicula SWF en IE7

ahhhhhh!!!
a simple vista sale a la luz el primer error:

filepath + "/1.xml"

eso da como resultado: /fotos//1.xml

las dos barras trata de no ponerlas, con una alcanza.
y la barra antes de la palabra "foto", la tienes que evitar tambien, esto quiere decir que comenzara desde la raiz, y por eso no funciona...te lo paso en limpio:

Código:
photo_filename = new Array();
photo_thumbnail = new Array();
photo_description = new Array();

filepath = "fotos/";

// Load the photos XML
var flashmo_xml = new XML();
flashmo_xml.ignoreWhite = true;
flashmo_xml.onLoad = function()
{
var nodes:Array = this.firstChild.childNodes;
for(var i=0;i<nodes.length;i++)
{
photo_filename.push(nodes[i].attributes.filename);
photo_thumbnail.push(nodes[i].attributes.thumbnail);
photo_description.push(nodes[i].attributes.description);
}

}
flashmo_xml.load(filepath + "1.xml");
ok?
__________________
/blog.singuerinc.com