praticamente muovo un clip al clik di un bottone:
al bottone ho messo:
on (release) {
mylife();
_root.gomylife ();
}
Codice PHP:
function mylife() {
import mx.transitions.*;
var tw:Tween = new Tween(this._parent.pagine_mc, "_x", mx.transitions.easing.Strong.easeOut, this._parent.pagine_mc._x, -725, 3, true);
var twy:Tween = new Tween(this._parent.pagine_mc, "_y", mx.transitions.easing.Strong.easeOut, this._parent.pagine_mc._y, -130, 1, true);
}
e quando il clip è arrivato a x -736 e y -148
deve fare questo:
function gomylife() {
if (this.pagine_mc._x == -736 && this.pagine_mc._y == -148) {
this.pagine_mc.my_life_mc.gotoAndPlay(2);
} else {
//
}
}
come potrei fare?