ciao, fai un mc largo 44px e concatenalo con nome btn poi nel primo fotogramma incolla questo codice:
Codice PHP:
import mx.transitions.Tween;
import mx.transitions.easing.*;
function rollover():Void {
for (i=0; i<5; i++) {
if (this._name>"btn_"+i) {
var tween1:Tween = new Tween(_root["btn_"+i], "_x", Regular.easeInOut, _root["btn_"+i]._x, _root["btn_"+i]._x-11, 10, false);
} else if (this._name<"btn_"+i) {
var tween2:Tween = new Tween(_root["btn_"+i], "_x", Regular.easeInOut, _root["btn_"+i]._x, _root["btn_"+i]._x+11, 10, false);
}
}
var tween3:Tween = new Tween(this, "_width", Regular.easeInOut, 44, 64, 10, false);
}
function rollout():Void {
for (i=0; i<5; i++) {
if (this._name>"btn_"+i) {
var tween1:Tween = new Tween(_root["btn_"+i], "_x", Regular.easeInOut, _root["btn_"+i]._x, _root["btn_"+i]._x+11, 10, false);
} else if (this._name<"btn_"+i) {
var tween2:Tween = new Tween(_root["btn_"+i], "_x", Regular.easeInOut, _root["btn_"+i]._x, _root["btn_"+i]._x-11, 10, false);
}
}
var tween3:Tween = new Tween(this, "_width", Regular.easeInOut, 64, 44, 10, false);
}
for (i=0; i<5; i++) {
var mc:MovieClip = this.attachMovie("btn", "btn_"+i, 100+i);
mc._x = 100+i*46;
mc._y = 100;
this["btn_"+i].onRollOver = rollover;
this["btn_"+i].onRollOut = rollout;
}
dovrebbe essere quello che ti serve...o darti uno spunto.