1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
mesLiens = new Array("menu1", "menu2", "menu3");
for (var i:Number = 1; i<=3; i++) {
var bt = this["bt"+i];
var menu = this["menu"+i];
menu.indice = i;
bt.indice = i;
bt.onRollOver = Over;
menu.onRollOut = Out;
}
function Over():Void {
trace(this.indice);
trace(mesLiens[this.indice-1]);
var y3:Number = 150;
com.mosesSupposes.fuse.ZigoEngine.doTween(_root[mesLiens[this.indice-1]],["_x", "_y"],[_root[mesLiens[this.indice-1]._x], y3],2,com.mosesSupposes.fuse.PennerEasing.easeOutExpo,0);
}
function Out():Void {
trace(this.indice);
trace(mesLiens[this.indice-1]);
var y3:Number = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(_root[mesLiens[this.indice-1]],["_x", "_y"],[_root[mesLiens[this.indice-1]._x], y3],2,com.mosesSupposes.fuse.PennerEasing.easeOutExpo,0);
} |
Partager