vorrei riproporre un effetto dei pulsanti come questo
al click di un pulsante, questo si sposta e assieme ad esso, tutti gli altri...
come legare il movimento dei vari pulsanti?
ammesso che ci siano 2 pulsanti (test1 e test2) ho provato ad inserire nel movieclip test1:
///
onClipEvent (load) {
xOrg = _x;
yOrg = _y;
}
on (release) {
test1_xFin = 480;
test1_yFin = 100;
test2_xFin = 480;
test2_yFin = 125;
}
on(release) {
this.onEnterFrame = function () {
_x += (test1_xFin - _x)/5;
_y += (test1_yFin - _y)/5;
}
}
///
e nel mc test2 ho inserito:
///
onClipEvent (load) {
xOrg = _x;
yOrg = _y;
}
on (release) {
test2_xFin = 60;
test2_yFin = 255;
test1_xFin = 60;
test1_yFin = 230;
}
on(release) {
this.onEnterFrame = function () {
_x += (test2_xFin - _x)/5;
_y += (test2_yFin - _y)/5;
}
}
///
NON FUNZIONA...
per quale motivo? mi indicate la via giusta, per favore?
grazie