Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/04/2008, 09:41
Avatar de Arwen215
Arwen215
 
Fecha de Ingreso: enero-2007
Ubicación: Madrid
Mensajes: 57
Antigüedad: 17 años, 2 meses
Puntos: 3
Re: Pausa en Actionscript

Este es el codigo que tengo...

noticias.xml

Código:
<?xml version="1.0" encoding="utf-8"?>  
<raiz><noticia><datos id='1' titular='Primera Noticia' cuerpo='Esta noticia es de prueba'/></noticia><noticia><datos id='2' titular='Segunda Noticia' cuerpo='Es otra noticia de prueba'></noticia></raiz>
extrae.fla

Código:
agenda_noticias=new XML();
agenda_noticias.ignoreWhite=1;
_root.createEmptyMovieClip("foto",10);
foto._x=5;
foto._y=45;
foto.loadMovie("foto.jpg");
parsea=function(exito){
	if (exito){
		for(i=0; i<this.firstChild.childNodes.length; i++)
		{
				titular_txt.text=this.firstChild.childNodes[i].childNodes[0].attributes.titular;
				cuerpo_txt.text=this.firstChild.childNodes[i].childNodes[0].attributes.cuerpo;
				
			}
	}
	else
	{
		trace("Error");
		}
}
agenda_noticias.load("noticias.xml");
agenda_noticias.onLoad=parsea;
Yo quiero que muestre una noticia, deje un tiempo para que el usuario la lea y automaticamente cambie a la siguiente y así...

Me voy a volver loca!!