se compone de lo siguiente, un mc que dentro contiene otro mc con 5 mc dentro estos ultimos son imagenes.dentro de este ultimo tenemos
f1.gotoAndStop(1);
f2.gotoAndStop(2);
f3.gotoAndStop(3);
f4.gotoAndStop(4);
f5.gotoAndStop(5);
En el escenario tenemos dos botones con los siguientes datos:
Boton 1
on (release)
{
_root.X = _root.X + 496;
_root.Xa = _root.Xa + 496;
}
boton 2
on (release)
{
_root.X = _root.X - 496;
_root.Xa = _root.Xa - 496;
En el segundo mc tenemos los siguientes datos
onClipEvent (load)
{
_root.X = this._x;
_root.aaa = 4.000000E-001;
_root.bbb = 5.000000E-002;
xx = 0;
trace (this._x);
}
onClipEvent (enterFrame)
{
if (_root.X == -496)
{
this._x = 2480;
_root.X = 1984;
} // end if
if (_root.X == 5456)
{
this._x = 2480;
_root.X = 2976;
} // end if
if (Math.abs(_root.X - this._x) < 1.000000E-003)
{
this._x = _root.X;
}
else
{
xx = xx * _root.aaa + (_root.X - this._x) * _root.bbb;
this._x = this._x + xx;
} // end else if
}
dentro de ese movieclip se repiten las imagenes hasta 3 veces, es decir contamos con quince imagenes, pero el nombre de los mc es igual, es decir f1, f2, f3 , f4, f5 y luego los repetimos en el escenario.
A ver si alguien me puede explicar este efecto y las ecuaciones y pasos, pq ando perdido.
el archivo fla os lo pongo aqui.
Si cambio el tamaño de las imganes que dato debo variar para que tenga el mismo efecto?
http://rapidshare.com/files/78412776/fotos.rar.html
