Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/12/2006, 12:01
Village
 
Fecha de Ingreso: febrero-2004
Mensajes: 43
Antigüedad: 20 años, 2 meses
Puntos: 0
Pregunta Efecto alfa para imagenes cargadas con xml ¿como?

Tengo una animacion con 3 campos de texto dinamico:
artist_txt
album_txt
notes_txt
y un contenedor llamado: picHolder_mc
tambien 2 botones de retroceso y avance para ver las fotos que cargan de un archivo a traves de un XML. Mi pregunta es como podria ser la funcion para que los botones carguen las imagenes con un efecto alpha.
Aqui esta el codigo:
var catalogue = new XML();
catalogue.ignoreWhite = true;
var record = 0;
var total = 0;
var current = 0;
catalogue.load("catalogue.xml");
catalogue.onLoad = function(success) {
if (success) {
artist_txt = this.firstChild.childNodes[_root.record].attributes.artist;
album_txt = this.firstChild.childNodes[_root.record].attributes.album;
notes_txt = this.firstChild.childNodes[_root.record].attributes.notes;
picHolder_mc.loadMovie("images/"+this.firstChild.childNodes[_root.record].attributes.image);

total = this.firstChild.childNodes.length;
current = record + 1;
entryNum_txt = current+" of "+ total;
}
};
stop();

back_btn.onPress=function() {
if(record == 0) {
record = total - 1;
} else {
record -= 1;
}

catalogue.load("catalogue.xml");
};
forward_btn.onPress=function() {
if(record + 1 == total) {
record = 0;
} else {
record += 1;
}

catalogue.load("catalogue.xml");
}
Gracias!

Última edición por Village; 13/12/2006 a las 18:23