bonjour,
voila sur un meme script j'ai plusieurs actions qui doivent tous etre annulé par le meme bouton
hors ça marche pour la premiere action,
mais n'arrive pas a annuler la seconde action mais laisse apparaitre un début visuel et sonore.
1ere action
btn_ptt.onRelease = function()
{
_root.affiche.text="Vous avez appuyez sur la touche <PTT> une sonnerie retentit dans la cabine et le <CREW REST> vous pouvez emettre une annonce";
stopAllSounds();
MonSon=new Sound(this);
MonSon.attachSound("ptt_son");
_root.MonSon.start(0,1);
unloadMovie(1);
afficheaip.text=" >DIRECT PA";
loadMovie("poissonpa.swf",1);
}
annulation de l'action
btn_rst.onRelease=function()
{
MonSon=new Sound(this);
MonSon.attachSound("Tonaliteinterphone");
MonSon.start(0,50);
_root.afficheaip.text="RST";
function deleteText() {
_root.afficheaip.text = "";
}
setTimeout(deleteText,400);
loadMovie("diese.swf",1);
_root.affiche.text="Vous venez de reseter l'interphone, vous pouvez raccrocher ou composer un numéro";
}
jusque là ça fonctionne..
2ème action
btn_pa.isClicked = false;
btn_1.isClicked = false;
btn_pa.onRelease = function(){
btn_pa.isClicked = true;
}
btn_1.onRelease = function(){
btn_1.isClicked = true;
}
this.onEnterFrame = function(){
if(btn_pa.isClicked && btn_1.isClicked){
stopAllSounds();
affiche.text="Vous venez de composer un PA1, votre annoce sera diffusée dans la zone avant d la cabine";
afficheaip.text = "PA1 IN USE";
unloadMovie (1)
}
voilà cette action fonctionne, mais ne s'annule pas ?!
j'ai copier le code qui annule et je l'ai recolé apres la deuxième action mais sans succès !!!
aie aie aie j'ai encore bcp d'actions a créer ça promet 

si vous pouvez m'aider
grand merci à vous
cordialement