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

agreguen una precarga, y para trabajar mejor creen componentes cuando van a trabajar con imagenes.

Código:
this.createEmptyMovieClip("contenedor", this.getNextHighestDepth());
var foto_mc:MovieClip = contenedor.createEmptyMovieClip("contenedorfoto", this.getNextHighestDepth());
foto_mc.loadMovie("imagen.jpg");
this.onEnterFrame = function() {
	if (foto_mc.getBytesLoaded() != 0 && foto_mc.getBytesLoaded() == foto_mc.getBytesTotal()) {
		foto_mc._height = 400;
		foto_mc._width = 400;
		delete this.onEnterFrame;
		trace("fin");
	}
};