El problema que tengo es que con este action script me funciona "bien" solamente con 5 fotos y necesito poner por lo menos 8. Qué está mal?
Aquí va el Código hecho sobre una tira de fotos como movie clip:
onClipEvent (load)
{
_root.X = this._x;
_root.aaa = 4.000000E-001;
_root.bbb = 5.000000E-002;
xx = 0;
trace (this._x);
}
onClipEvent (enterFrame)
{
//ancho de la foto
if (_root.X == -496)
{
//Ancho total de la tira de fotos
this._x = 2461;
//posición "x" de la foto final
_root.X = 1466;
} // end if
if (_root.X == 5456)
{
this._x = 2461;
//Posicion de la ultima foto de la derecha
_root.X = 2994;
} // 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
}
CODIGO BOTONES:
// boton1 : El que va para adelante
on (release)
{
_root.X = _root.X - 496;
_root.Xa = _root.Xa - 496;
}
// boton2 : El que va para atrás.
on (release)
{
_root.X = _root.X + 496;
_root.Xa = _root.Xa + 496;
}
SINO ACEPTO OTRAS IDEAS GRACIAS!!!
