Cree el boton el flash y el contenido de boton (es decir "enlace.html") no lo llama y lo reconoce como indefinido.
Quisiera saber si por favor me pueden ayudar. El xml es el siguiente:
Código :
<gallery> <image tipo="FOTOSHOW" MediaId="1" titulo="Inti Raymi" descripcion="La Fiesta del Sol en el Cuzco" thmb="1.jpg" lnk="http://www.yahoo.es" /> <image tipo="FOTOSHOWI" MediaId="1" titulo="Inti Raymi" descripcion="La Fiesta del luna en el Cuzco" thmb="2.jpg" lnk="http://www.hotmail.com" /> <image tipo="FOTOSHOWU" MediaId="1" titulo="Inti Raymi" descripcion="La Fiesta del saturno en el Cuzco" thmb="3.jpg" lnk="http://www.gmail.com" /> <image tipo="FOTOSHOWE" MediaId="1" titulo="Inti Raymi" descripcion="La Fiesta del pluton en el Cuzco" thmb="4.jpg" lnk="http://www.google.com" /> <image tipo="FOTOSHOWA" MediaId="1" titulo="Inti Raymi" descripcion="La Fiesta del marte en el Cuzco" thmb="5.jpg" lnk="http://www.amazon.com" /> </gallery>
Hasta ahi todo chevere. Ahora les pongo el flash (donde sospecho, se encuentra el real problema):
Código :
System.useCodePage = true;
//loadVariablesNum("titulo_2.txt", 0);
// Xphoto = posicion de inicio del scrool de la imagen
xphoto = 0;
//
// Widthmovie = Aqui definimos el ancho de la pelicula
widthmovie = 1024;
//
// Scrollspeed = Definie la velocidad del scroll
scrollspeed = 15;
//
// widthphoto = el ancho de la imagen a poner en el scroll, en pixeles
widthphoto = 1735;
//CARGAR FOTOS
myPhoto = new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(success) {
//portfolioTag = this.firstChild;
numimages = this.firstChild.childNodes.length;
spacing = 100;
photo.txtMediaId1.text = this.firstChild.childNodes[0].attributes.MediaId;
photo.txtTipo01.text = this.firstChild.childNodes[0].attributes.tipo;
photo.txtTitulo01.text = this.firstChild.childNodes[0].attributes.titulo;
photo.txtDescripcion01.text = this.firstChild.childNodes[0].attributes.descripcion;
photo.img01.loadMovie(this.firstChild.childNodes[0].attributes.thmb);
//photo.img01.onpress(getURL(this.firstChild.childNodes[0].attributes.lnk, "_blank", "GET"));
//Link de la foto
//photo.img01.onRelease{getURL("www.elperuano.com.pe", "_self", "GET");}
// photo.img01(press, release) {getURL(this.firstChild.childNodes[0].attributes.thmb, "_self", "GET");}
//link load
//photo.btn1.onPress = function() {
//
//link = this.firstChild.childNodes[0].attributes.lnk;
//getURL("javascript:launchwin('"+link+"','newwindow','toolbar=no,directories=no,menubar= no,scrollbars=no,width=276,height=155,resize=no')");
//
//};
photo.btn1.onPress = function() {
{
link = "http://"+this.firstChild.childNodes[0].attributes.lnk;
getURL(link, "_blank");
};
};
photo.txtMediaId2.text = this.firstChild.childNodes[1].attributes.MediaId;
photo.txtTipo02.text = this.firstChild.childNodes[1].attributes.tipo;
photo.txtTitulo02.text = this.firstChild.childNodes[1].attributes.titulo;
photo.txtDescripcion02.text = this.firstChild.childNodes[1].attributes.descripcion;
photo.img02.loadMovie(this.firstChild.childNodes[1].attributes.thmb);
photo.txtMediaId3.text = this.firstChild.childNodes[2].attributes.MediaId;
photo.txtTipo03.text = this.firstChild.childNodes[2].attributes.tipo;
photo.txtTitulo03.text = this.firstChild.childNodes[2].attributes.titulo;
photo.txtDescripcion03.text = this.firstChild.childNodes[2].attributes.descripcion;
photo.img03.loadMovie(this.firstChild.childNodes[2].attributes.thmb);
photo.txtMediaId4.text = this.firstChild.childNodes[3].attributes.MediaId;
photo.txtTipo04.text = this.firstChild.childNodes[3].attributes.tipo;
photo.txtTitulo04.text = this.firstChild.childNodes[3].attributes.titulo;
photo.txtDescripcion04.text = this.firstChild.childNodes[3].attributes.descripcion;
photo.img04.loadMovie(this.firstChild.childNodes[3].attributes.thmb);
photo.txtMediaId5.text = this.firstChild.childNodes[4].attributes.MediaId;
photo.txtTipo05.text = this.firstChild.childNodes[4].attributes.tipo;
photo.txtTitulo05.text = this.firstChild.childNodes[4].attributes.titulo;
photo.txtDescripcion05.text = this.firstChild.childNodes[4].attributes.descripcion;
photo.img05.loadMovie(this.firstChild.childNodes[4].attributes.thmb);
//
//for (i=0; i<numimages; i++) {
//this.picHolder = this.firstChild.childNodes[i];
//
//
//}
};
myPhoto.load("xml_scroll_central.xml");Pueden ver que intente 2 formas (y hasta 3) de llamar al enlace, pero nada de nada. Espero que puedan ayudarme.
