Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/09/2007, 15:56
Rizzo
 
Fecha de Ingreso: septiembre-2006
Mensajes: 1.193
Antigüedad: 17 años, 7 meses
Puntos: 30
Re: Para los que saben actionscript

intenta con esta funcion

Código:
//------------------------------------FUNCION
//-------------------------------------
cargaFoto("archivo.swf",contenedor);
//--------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------
function cargaFoto(rutaFoto:String,foto_mc:MovieClip) {

	foto_mc= this.createEmptyMovieClip("contenedorfoto", this.getNextHighestDepth());
	foto_mc.loadMovie(rutaFoto);
	//--------------------------------------------------------------------------------------
	//--------------------------------------------------------------------------------------
	function precarga() {
		trace(foto_mc.getBytesLoaded()+"  de  "+foto_mc.getBytesTotal());
		if (foto_mc.getBytesLoaded() != 0 && foto_mc.getBytesLoaded() == foto_mc.getBytesTotal()) {
			foto_mc._x = 200;
			foto_mc._y = 200;
			foto_mc._height = 150;
			foto_mc._width = 230;
			//--------------------------------------------------------------------------------------
			//--------------------------------------------------------------------------------------
			if (foto_mc._height == 150) {

				clearInterval(id);

				trace("Fin");
			}
			//--------------------------------------------------------------------------------------    
			//--------------------------------------------------------------------------------------

		}
	}
	id = setInterval(precarga, 10);
}