Ver Mensaje Individual
  #4 (permalink)  
Antiguo 28/11/2008, 12:24
Avatar de Lynxcraft
Lynxcraft
 
Fecha de Ingreso: noviembre-2007
Ubicación: yecla murcia
Mensajes: 1.346
Antigüedad: 18 años, 10 meses
Puntos: 51
Respuesta: Ralentizar movimiento de Profundidad

Código PHP:
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;
};

function 
Escala(mc1,datax,datay,tiempo) {
    
import mx.transitions.Tween;
    
import mx.transitions.easing.*;
    var 
fxAlphaMCx = new Tween(mc1, "_xscale", Strong.easeOut,mc1._xscale, datax, tiempo, true);
    var 
fxAlphaMCy= new Tween(mc2, "_yscale", Strong.easeOut,mc1._yscale,datay, tiempo, true);
} 
onRollOver=function(){
    
Escala(this,ESCALAX,ESCALAY,3)
this.swapDepths( 8000 );
};

onRollOut=onReleaseOutside=function(){
Reducir();
Alejar();
}; 
__________________
Sobran las ideas cuando faltan ganas de trabajar en ellas
Lynxcraft