Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. function ecouteurDeClickSurLesBoutons (event:MouseEvent):void {
  2. boutonActif = event.currentTarget as MovieClip;
  3.  
  4. for each (var bouton:MovieClip in listeBoutons) {
  5. if (bouton == boutonActif) bouton.gotoAndStop("rollOut");
  6. else bouton.gotoAndStop("inactif");
  7.  
  8. if (boutonActif == b_couleurs_mc) {
  9. listeActive = listeCouleur;
  10. }
  11. else if (boutonActif == b_NB_mc) {
  12. listeActive = listeNoirBlanc;
  13. }
  14.  
  15. indexImage = 0;
  16. afficherImage ();
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement