Ver Mensaje Individual
  #3 (permalink)  
Antiguo 15/12/2007, 03:29
pepecantero
 
Fecha de Ingreso: agosto-2006
Mensajes: 32
Antigüedad: 17 años, 8 meses
Puntos: 0
De acuerdo Re: A ver quien puede con él...

Ok con el codigo dispuesto como tu lo pones no funciona"en mi caso" correctamente, pero he decirte que el fallo estaba en la carga, así que simplemente había que comenzar cargando el mc en this al principio del código. Quizás si no pongo nada (creo que me lo habías sugerido) hace lo mismo.
Bueno pongo el código así si alguier lo quiere utilizar lo puede hacer.
Gracias Darkxerox

num=1
master_mc =this.createEmptyMovieClip("conten_1",4);
master_mc._x = 0;
master_mc._y = 0;
xml = new XML()
xml.ignoreWhite=true
xml.onLoad=function(ok){
if (ok){
tot=xml.firstChild.childNodes.length
mostrar()
}else
trace ("error")
}
xml.load("imagenes.xml")
pre.onRelease=function(){
if (num==0){
num=tot-1
mostrar()
}else{
num--
mostrar()
}
}

nex.onRelease=function(){
if (num==tot-1){
num=0
mostrar()
}

else{
num++
mostrar()
}
}


function mostrar(){

this.conten_1.loadMovie(xml.firstChild.childNodes[num].attributes.ur)
// this.conten_1.loadMovie(xml.firstChild.childNodes[num].attributes.ur)
des=xml.firstChild.childNodes[num].attributes.titulo

t.text=num+1 + "/" + tot

}

//--------------------------------------------------------