Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/09/2005, 09:15
tresd
 
Fecha de Ingreso: febrero-2005
Mensajes: 54
Antigüedad: 19 años, 3 meses
Puntos: 0
el problema es que el motor xml tambien tienen otras funciones como dar el numero de imagenes un titulo y un pie de pag.

pero gracias de todas formas e tratado de
adaptarlo a lo que tengo perono queda

lo que tengo es esto:

function loadXML(loaded) {
if (loaded) {
// archivo xml cargado
xmlNode = this.firstChild;
image = [];
tit = [];
coment = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
tit[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
coment[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
}
firstImage();
} else {
// archivo xml no cargado
content = "Fichero XML no cargado!";
}
}
// ************************************************//
// PRINCIPAL//
xmlData = new XML();
// Nuevo objeto XML
xmlData.ignoreWhite = true;
// Ignorar espacios en blanco
xmlData.onLoad = loadXML;
// LLamamos a loadXML()
xmlData.load("images.xml");
// cargamos XML
// *************************************************//
// FUNCION PARA NAVEGAR CON TECLADO//
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
// ************************************************//
// NAVEGACION POR BOTONES//
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
// ************************************************//
// PRECARGA DE IMAGENES//
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
// **************************************************
// FUNCION AVANZAR IMAGEN//
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
tit_txt.text = tit[p];
desc_txt.text = coment[p];
picture_num();
}
}
}
// ************************************************//
// FUNCION IMAGEN ANTERIOR//
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
tit_txt.text = tit[p];
desc_txt.text = coment[p];
picture_num();
}
}
// *************************************************//
// FUNCION QUE CARGA LA PRIMERA IMAGEN//
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0],1);
tit_txt.text = tit[0];
desc_txt.text = coment[0];
picture_num(n-1);
}
}
// ************************************************//
// FUNCION QUE CONTROLA NUMERACION DE IMAGENES//
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}

esto me lo dieron aqui mismo y se los agradesco pero ahora me guataria saber
como puedo hacer para que las imagenes se vean de el numero mayor al menor

si tienen un tutorial para esto se los agradeceria enserio

gracias y pardon si me extendi mucho