bonjour à tous et tout spécialement à obi wan...
J'ai fait un menu et sous menu dans flash (MX 2004), avec ce système de code :
Les b1, b2, b3, b4 sont mes boutons.
J'aimerais savoir s'il était possible de leur attribuer à chacun (des boutons et sous-boutons) une couleur différente quand on a cliqué ?
Merci beaucoup...obiwan
virg
J'ai fait un menu et sous menu dans flash (MX 2004), avec ce système de code :
Bloc de code:
b4.btn.onrelease=function(){
this._parent.gotoAndPlay(2);
gotoAndStop("classiques");
cible_dia1.loadMovie("classiques.swf");
this._parent._parent.b3.gotoAndStop(1);
this._parent.gotoAndPlay(2);
this._parent._parent.b2.gotoAndStop(1);
this._parent.gotoAndPlay(2);
this._parent._parent.b1.gotoAndStop(1);
}
b3.btn.onrelease=function(){
this._parent.gotoAndPlay(2);
gotoAndStop("histoire");
this._parent._parent.b2.gotoAndStop(1);
this._parent.gotoAndPlay(2);
this._parent._parent.b4.gotoAndStop(1);
this._parent.gotoAndPlay(2);
this._parent._parent.b1.gotoAndStop(1);
}
b2.btn.onrelease=function(){
this._parent.gotoAndPlay(2);
gotoAndStop("visite");
cible_dia6.loadMovie("visite.swf");
this._parent._parent.b3.gotoAndStop(1);
this._parent.gotoAndPlay(2);
this._parent._parent.b4.gotoAndStop(1);
this._parent.gotoAndPlay(2);
this._parent._parent.b1.gotoAndStop(1);
}
b1.btn.onrelease=function(){
this._parent.gotoAndPlay(2);
gotoAndStop("contact");
this._parent._parent.b3.gotoAndStop(1);
this._parent.gotoAndPlay(2);
this._parent._parent.b4.gotoAndStop(1);
this._parent.gotoAndPlay(2);
this._parent._parent.b2.gotoAndStop(1);
}
Les b1, b2, b3, b4 sont mes boutons.
J'aimerais savoir s'il était possible de leur attribuer à chacun (des boutons et sous-boutons) une couleur différente quand on a cliqué ?
Merci beaucoup...obiwan
virg