Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/03/2005, 17:35
Avatar de isaacluz
isaacluz
 
Fecha de Ingreso: marzo-2005
Mensajes: 180
Antigüedad: 19 años, 1 mes
Puntos: 0
A ver.. prueba el siguiente... tiene cosillas de más, como que te muestra varias noticias y las pone en el cmpo de texto
La organizacion de los elementos es :

_root.Texto.Texto = (swf.MC.Campodetexto)

el txt que cargo es comosigue
Código:
&Noticias=noticia1||noticia 2|| etc
los || son para separar las noticias

y en el _root. de la pelicula pongo
Código:
 // PONEMOS LOS SETTINGS 
System.useCodepage = true;
Textos.Textos.html = false;
Textos.Textos.multiline = false;
Textos.Textos.wordWrap = false;
Textos.Textos.autoSize = "left";
// LO PONEMOS HASTA A POR ALLA PORQUE SI NO
Textos._x = Stage.width*100;
// CARGAMOS LOS DATOS
Datos = new LoadVars();
Datos.load("datos.txt");
Datos.onLoad = function() {
	// CONVERTIMOS LOS DATOS EN UN ARRAY
	Noticias = Datos.Noticias.split("||");
	// ASIGNAMOS LA PRIMERO NOTICIA AL CAMPO DE TEXTO
	// Y LO CORREMOS A LA DERECHA
	Textos.Textos = Noticias[0];
	Textos._x = Stage.width;
};
// PONEMOS EL ONTADOR A CERO
Contador = 0;
// AQUI CONTROLAMOS EL SCROLL Y EL CAMBIO DE NOTICIA
this.onEnterFrame = function() {
	Textos._x -= 5;
	if (Textos._x<(0-Textos._width)) {
		if (Contador<(Noticias.length-1)) {
			Contador += 1;
		} else {
			Contador = 0;
		}
		Textos._x = Stage.width;
		Textos.Textos = Noticias[Contador];
	}
};
// SI QUIERES UN LINK PON ALGO ASI
Texto.onRelease=function(){
    getURL("ball.html","_blank");
}

chécalo a ver que tal?

Última edición por isaacluz; 21/03/2005 a las 17:36