Ya tengo prácticamnte todo: Son 4 botones botonplay, botonpausa, botonalante, botonatras. El código lo pongo en el primer frame de la línea del tiempo en un layer que le he llamado codigo.
Código ActionScript :
stop(); //Esto es para que la pelicula no empiece corriendo
botonplay.onRelease = function () {
if (this._parent._currentFrame < this._parent._totalframes) {
gotoAndPlay (this._parent._currentFrame + 1);
}
};
botonpausa.onRelease = function () {
if (this._parent._currentFrame < this._parent._totalframes) {
gotoAndStop (this._parent._currentFrame);
}
};
botonalante.onRelease = function () {
if (this._parent._currentFrame < this._parent._totalframes) {
gotoAndStop (this._parent._currentFrame + 10);
}
};
//
botonatras.onRelease = function () {
if (this._parent._currentFrame >= 1) {
gotoAndStop (this._parent._currentFrame - 10);
}
};
Sólo me falta que los botones botonalante y botonatras funcionen mientras el mouse esté presionado, de forma que no haya que darle tantos clics.
¿Me ayudan?