Menu roll over flash dans dreamweaver

aimce Messages postés 1 Date d'inscription vendredi 30 mai 2008 Statut Membre Dernière intervention 18 février 2012 - 18 févr. 2012 à 18:59
bonjour, j'ai créé un menu sous flash composé de boutons qui changent de couleur au passage de la souris. Lorsque je l'importe dans dreamweaver, tout fonctionne (liens et animation) sauf que le bouton ne reste pas allumé sur la page active.
Voici mon code action script :
// mes IF //////////////////////////////////////
if (my_menu == "01") {
btn_01.gotoAndPlay(14);
} else {
roll_01();
}

////////////////////////////////////////////////

if (my_menu == "02") {
btn_02.gotoAndPlay(14);
} else {
roll_02();
}

/////////////////////////////////////////////////

if (my_menu == "03") {
btn_03.gotoAndPlay(14);
} else {
roll_03();
}

////////////////////////////////////////////////

if (my_menu == "04") {
btn_04.gotoAndPlay(14);
} else {
roll_04();
}


///////////////////////////////////////////////
// bouton 01 //////////////////////////////////

function roll_01() {
btn_01.onRollOver = function() {
this.gotoAndPlay("over");
};

btn_01.onRollOut = function() {
this.gotoAndPlay("out");
};

btn_01.onRelease = function() {
this.getURL("accueil.html");
};
}

// bouton 02 //////////////////////////////////

function roll_02() {
btn_02.onRollOver = function() {
this.gotoAndPlay("over");
};

btn_02.onRollOut = function() {
this.gotoAndPlay("out");
};

btn_02.onRelease = function() {
this.getURL("page_service.html");
};
}

// bouton 03 //////////////////////////////////

function roll_03() {
btn_03.onRollOver = function() {
this.gotoAndPlay("over");
};

btn_03.onRollOut = function() {
this.gotoAndPlay("out");
};

btn_03.onRelease = function() {
this.getURL("gallerie.html");
};
}

// bouton 04 //////////////////////////////////

function roll_04() {
btn_04.onRollOver = function() {
this.gotoAndPlay("over");
};

btn_04.onRollOut = function() {
this.gotoAndPlay("out");
};

btn_04.onRelease = function() {
this.getURL("contact.html");
};
}


Je ne sais plus où et quoi rajouter dans dreamweaver pour que ce la fonctionne. Merci à tous pour vos réponses
Rejoignez-nous