Ver Mensaje Individual
  #5 (permalink)  
Antiguo 02/02/2006, 16:10
Avatar de luistar
luistar
 
Fecha de Ingreso: marzo-2005
Ubicación: Argentina
Mensajes: 939
Antigüedad: 19 años, 1 mes
Puntos: 0
m0dificando un poco el código de -=ArgoN=-
Código:
var contenedor_ref:MovieClip = this.createEmptyMovieClip('contenedor',this.getNextHighestDepth());
var foto_ref:MovieClip = contenedor_ref.createEmptyMovieClip('foto',contenedor_ref.getNextHighestDepth());
var distancia_marco:Number = 10;
//--------->
foto_ref.loadMovie("foto.jpg");
calcular = function () {
	if (foto_ref._width != 0) {
		with(foto_ref){
			_x = _y = distancia_marco;
		}
		with(contenedor_ref){
			_x = _y = 100;
			//aki dibujamos el marco
			lineStyle(1,0x999999);
			beginFill(0xE1E1E1,100)
			moveTo(0,0);
			lineTo(foto_ref._width+distancia_marco*2,0);
			lineTo(foto_ref._width+distancia_marco*2,foto_ref._height+distancia_marco*2);
			lineTo(0,foto_ref._height+distancia_marco*2);
			lineTo(0,0);
			endFill();
		}
		//-------> este ya es un agregado :D
		contenedor_ref.onPress = function(){this.startDrag(false);}
		contenedor_ref.onMouseUp = function(){this.stopDrag();}
		// find e agregado <-----------
		clearInterval(comprovar);
	}
};
comprovar = setInterval(calcular, 1);
stop();
:D
__________________
Si digo que soy mentiroso. ¿Lo soy?

Última edición por luistar; 02/02/2006 a las 16:17