Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/10/2007, 12:52
Avatar de SinguerInc
SinguerInc
 
Fecha de Ingreso: octubre-2007
Ubicación: Barcelona, España
Mensajes: 551
Antigüedad: 16 años, 6 meses
Puntos: 5
Re: como evitar cache!!este MC carga foto cada 15 seg...

aca hice algo pero no lo puedo hacer un test con la camara...fijate si funciona

Código:
var movieUrl:String = "http://www.google.it/ig/images/igoogle_logo_sm.gif";
var _l1:MovieClip = _root;
var tiempoCambiaImagen:Number = 5000;
function cargaMovie()
{
		try
		{
			_l1.removeMovieClip(main_mc);
		}
		catch(error:Error){}
		
		var listener:Object = new Object();
		listener.onLoadComplete = function()
		{
				var main_mc:MovieClip = _l1.main_mc;
				trace("imagen cargada");
				var ciclo:Number = setTimeout(cargaMovie, tiempoCambiaImagen);
		}
		var ml:MovieClipLoader = new MovieClipLoader();
		ml.addListener(listener);
		this.createEmptyMovieClip("main_mc", _l1.getNextHighestDepth());
		ml.loadClip(movieUrl + "?rand=" +(new Date().getTime()), main_mc);
}
cargaMovie();
debes cambiar el url y el tiempo...