Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/11/2008, 12:08
Avatar de NaRanJiTo78
NaRanJiTo78
 
Fecha de Ingreso: noviembre-2007
Ubicación: In the BeaCh
Mensajes: 874
Antigüedad: 16 años, 5 meses
Puntos: 10
Pregunta Respuesta: Ralentizar movimiento de Profundidad

Ok jeje...He aqui:

Cita:
var archivo:String;
var archivoGrande:String;
var reduce:Number;
var ESCALAX:Number=this._xscale;
var ESCALAY:Number=this._yscale;



archivo="thumbs/" + this._name + ".jpg";
trx_mc.loadMovie(archivo);

this.Alejar();
this.Reducir();

function Alejar(){

this.swapDepths( this._y );
}

function Reducir(){

reduce=this._y / 16.5;
reduce=reduce * 0.07;

//Reduccion
this._xscale=this._xscale*reduce;
this._yscale=this._yscale*reduce;
}

orig_x = this._x; // Origen en X
orig_y = this._y; // Origen en Y


onEnterFrame = function(){

dest_x = orig_x + ( ( 275 - _root._xmouse ) * ( this._xscale / 100 ) );


incr_x = ( dest_x - this._x ) / 10;

this._x += incr_x;


dest_y = orig_y - (_root._ymouse / 20 );

incr_y = ( dest_y - this._y ) / 10;
this._y = dest_y;
}


onRollOver=function(){
this._xscale=ESCALAX;
this._yscale=ESCALAY;
this.swapDepths( 8000 );
}

onRollOut=onReleaseOutside=function(){
Reducir();
Alejar();
}