Ver Mensaje Individual
  #15 (permalink)  
Antiguo 22/08/2007, 12:21
Rizzo
 
Fecha de Ingreso: septiembre-2006
Mensajes: 1.193
Antigüedad: 17 años, 6 meses
Puntos: 30
Re: como dimensiono una imagen?

prueba asi si tienes dudas pregunta ahora. pegalo tal cual en un fla nuevo no cambies nada.




Código:
this.createEmptyMovieClip("contenedor",this.getNextHighestDepth());
var foto_mc:MovieClip = contenedor.createEmptyMovieClip("contenedorfoto", this.getNextHighestDepth());
foto_mc.loadMovie("http://www.galoelectronica.com.ar/borrar/imagenesadopciones/28082006-2.jpg");
//--------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------
function precarga() {

	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);
		}
		//--------------------------------------------------------------------------------------  
		//--------------------------------------------------------------------------------------

	}
}
id = setInterval(precarga, 10);