Hola, mira, pues me puse a picarle al codigo y cree esto:
Aqui el codigo, son 4 botones, clip1 clip2 clip3 clip4.
Código ActionScript :
import mx.transitions.Tween;
import mx.transitions.easing.*;
var entrfrm:Function = function( Void ):Void
{
var sig:MovieClip = this._parent["clip" + (this.index + 1)];
var ant:MovieClip = this._parent["clip" + (this.index - 1)];
if( sig == undefined )
{
var lan:Number = ant._x + ant._width / 2;
this._x = lan + this._width / 2;
}
else if( ant == undefined )
{
var lsg:Number = sig._x - sig._width / 2;
this._x = lsg - this._width / 2;
}
else
{
var lsg:Number = sig._x - sig._width / 2;
var lan:Number = ant._x + ant._width / 2;
this._x = lan + (lsg - lan) / 2;
}
};
var rollovr:Function = function( Void ):Void
{
this.twx.stop();
this.twy.stop();
this.twx = new Tween(this, "_xscale", Regular.easeOut, this._xscale, 200, 1, true);
this.twy = new Tween(this, "_yscale", Regular.easeOut, this._yscale, 200, 1, true);
};
var rollout:Function = function( Void ):Void
{
this.twx.stop();
this.twy.stop();
this.twx = new Tween(this, "_xscale", Regular.easeOut, this._xscale, 100, 1, true);
this.twy = new Tween(this, "_yscale", Regular.easeOut, this._yscale, 100, 1, true);
};
this.clip1.x = this.clip1._x;
for( var i:Number = 1; i <= 4; i++ )
{
this["clip" + i].index = i;
this["clip" + i].onEnterFrame = entrfrm;
this["clip" + i].onRollOver = rollovr;
this["clip" + i].onRollOut = rollout;
}
Me quedo un poco austero, pero te puede servir para tu menu, y cuando conluyas con tu menu bien puedes postear como te quedo. Suerte.