intanto l'import lo metterei fuori
Codice PHP:
import mx.transitions.Tween;
import mx.transitions.easing.*;
btn_dx.stato=false
btn_dx.onRelease=function{
if(!this.stato){
this.stato=true
btn_sx.stato=false
if (_root.iPlayer.Covers._x < 341.5) {
new Tween(_root.iPlayer.Covers, "_x",Regular.easeOut, _root.iPlayer.Covers._x, _root.iPlayer.Covers._x + 170, 2.5, true);
}
}
}
btn_sx.stato=false
btn_sx.onRelease=function{
if(!this.stato){
this.stato=true
btn_dx.stato=false
if (_root.iPlayer.Covers._x > 171.5) {
new Tween(_root.iPlayer.Covers, "_x",Regular.easeOut, _root.iPlayer.Covers._x, _root.iPlayer.Covers._x - 170, 2.5, true);
}
}
}
Vedi un po se ti funziona ho pensato ad un clip istanziato btn_dx e btn_sx che fungono da pulsanti per avanti e dietro
Ciao