non funge è meglio che ti posti tutto il cod:
frame: 1
Codice PHP:
var xfreccia:Number;
import mx.transitions.Tween;
import mx.transitions.easing.Regular;
import mx.transitions.easing.Strong;
import mx.transitions.easing.Back;
import mx.transitions.easing.Elastic;
import mx.transitions.easing.Bounce;
import mx.transitions.easing.None;
var ___TWEEN___:Tween = new Tween(this.freccia_mc, "_x", Elastic.easeInOut, -8.4, -391, 2,true);
var tweenListener:Object = new Object();
//
tweenListener.onMotionFinished = function():Void {
_root.sfo_paginabody_mc.head_mc.logotop_mc.luce1_mc.gotoAndPlay(2);
xfreccia = this.freccia_mc._x;
//trace("finito");
};
___TWEEN___.addListener(tweenListener);
frame 2:
Codice PHP:
stop();
// funzioni bottoni
//bottone steps
//sopra
stepsbtn_mc.onRollOver = function() {
var tw_steps:Tween = new Tween(this._parent.freccia_mc, "_x", Elastic.easeInOut, this._parent.xfreccia, -284, 2,true);
}
stepsbtn_mc.onRollOut = function() {
this.gotoAndStop(1);
}
stepsbtn_mc.onRelease = function() {
//_root.swf_esterno_mc.gotoAndPlay("back");
//_root.currMovie = "home"
}
//stepsbtn_mc.onPress = function() {
//}