1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
| Stop();
//le menu
tab_menu=new Array("Accueil","Histoire","Pochettes","Extraits","Liens");
nb_rubriques=tab_menu.length;
decal=30;
decaly=100;
i=0;
//j=2;
for (i=0;i<nb_rubriques;i++){
_root.attachMovie("item","item"+i,i);
mc=_root["item"+i];
//mc=eval("item"+i);
mc.nom=tab_menu[i];
mc._x=decal;
mc._y=decaly;
decal += mc.txt.textWidth + 40;
mc.onRollOver=function(){
this._xscale+=20; //augmentation echelle x texte
this._yscale+=20; //augmentation echelle y texte
this._alpha=90; //transparence : alpha 90
}
mc.onRollOut=function(){
this._xscale-=20; //reduction echelle texte
this._yscale-=20;
this._alpha=100; //retour alpha 100%
}
} //fin boucle for
item0.onMouseDown=function(){
_root.gotoAndPlay("2");
}
item1.onMouseDown=function(){
_root.gotoAndPlay("3");
}
item2.onMouseDown=function(){
_root.gotoAndPlay(4);
}
item3.onMouseDown=function(){
_root.gotoAndPlay(5);
}
item4.onMouseDown=function(){
_root.gotoAndPlay(6);
} |
Partager