Cogi el tutorial de easing para novatos, que esta publicado aqui:
http://www.cristalab.com/vertutorial.php?id=57
y tratando de hacerme el experto quise hacerlo pero vertical, asi que muy genio yo, cambie variables y medio que funciono, pero luego empezo a dar de saltitos cuando el mouse lo llevo hacia arriba,
DAtos: la peli es de 450 de alto y 700 de ancho
y los MC´s de 30 de alto por 150 de ancho
ahi va el codigo del primer y segundo frame[/b]
PRIMER FRAME
var yposMouse:Number = _root._ymouse;
var velMax:Number = 4;
var velMin:Number = 0;
var yMitadEscena:Number = 200;
var altoEscena:Number = 400;
var altoMC:Number = 30;
var factor:Number = yposMouse*(velMax-velMin)/yMitadEscena+2*velMin-velMax;
if (factor>velMax) {
factor = velMax;
} else if (factor<-velMax) {
factor = -velMax;
}
//para el 1
if (uno_mc._y>altoEscena) {
this.uno_mc._y = -altoMC;
}
if (uno_mc._y<-altoMC) {
this.uno_mc._y = altoEscena;
}
//para el 2
if (dos_mc._y>altoEscena) {
this.dos_mc._y = -altoMC;
}
if (dos_mc._y<-altoMC) {
this.dos_mc._y = altoEscena;
}
//3
if (tres_mc._y>altoEscena) {
this.tres_mc._y = -altoMC;
}
if (tres_mc._y<-altoMC) {
this.tres_mc._y = altoEscena;
}
//4
if (cuatro_mc._y>altoEscena) {
this.cuatro_mc._y = -altoMC;
}
if (cuatro_mc._y<-altoMC) {
this.cuatro_mc._y = altoEscena;
}
//5
if (cinco_mc._y>altoEscena) {
this.cinco_mc._y = -altoMC;
}
if (cinco_mc._y<-altoMC) {
this.cinco_mc._y = altoEscena;
}
//6
if (seis_mc._y>altoEscena) {
this.seis_mc._y = -altoMC;
}
if (seis_mc._y<-altoMC) {
this.seis_mc._y = altoEscena;
}
//7
if (siete_mc._y>altoEscena) {
this.siete_mc._y = -altoMC;
}
if (siete_mc._y<-altoMC) {
this.siete_mc._y = altoEscena;
}
//8
if (ocho_mc._y>altoEscena) {
this.ocho_mc._y = -altoMC;
}
if (ocho_mc._y<-altoMC) {
this.ocho_mc._y = altoEscena;
}
play();
SEGUNDO FRAME
if (yposMouse>(yMitadEscena)+10) {
this.uno_mc._y -= factor;
this.dos_mc._y -= factor;
this.tres_mc._y -= factor;
this.cuatro_mc._y -= factor;
this.cinco_mc._y -= factor;
this.seis_mc._y -= factor;
this.siete_mc._y -= factor;
this.ocho_mc._y -= factor;
}
if (yposMouse<(yMitadEscena)-10) {
this.uno_mc._y -= factor;
this.dos_mc._y -= factor;
this.tres_mc._y -= factor;
this.cuatro_mc._y -= factor;
this.cinco_mc._y -= factor;
this.seis_mc._y -= factor;
this.siete_mc._y -= factor;
this.ocho_mc._y -= factor;
}
//Corrección del 1
if (this.ocho_mc._y<altoEscena-altoMC) {
this.uno_mc._y = this.ocho_mc._y+altoMC;
}
//corrección del 2
if (this.uno_mc._y<altoEscena-altoMC) {
this.dos_mc._y = this.uno_mc._y+altoMC;
}
//corrección del 3
if (this.dos_mc._y<altoEscena-altoMC) {
this.tres_mc._y = this.dos_mc._y+altoMC;
}
//corrección del 4
if (this.tres_mc._y<altoEscena-altoMC) {
this.cuatro_mc._y = this.tres_mc._y+altoMC;
}
//corrección del 5
if (this.cuatro_mc._y<altoEscena-altoMC) {
this.cinco_mc._y = this.cuatro_mc._y+altoMC;
}
//corrección del 6
if (this.cinco_mc._y<altoEscena-altoMC) {
this.seis_mc._y = this.cinco_mc._y+altoMC;
}
//corrección del 7
if (this.seis_mc._y<altoEscena-altoMC) {
this.siete_mc._y = this.seis_mc._y+altoMC;
}
//corrección del 8
if (this.siete_mc._y<altoEscena-altoMC) {
this.ocho_mc._y = this.siete_mc._y+altoMC;
}
gotoAndPlay(1);
A VER QUIEN ES EL QUE ME PUEDE DECIR EN QUE ME EQUIVOQUE!!! POR FA!!!!!!!!!!!!

