Advertisement
Guest User

KIUR ON TAUN

a guest
Jan 24th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. import flash.events.MouseEvent;
  2.  
  3. blue_plate_btn.addEventListener(MouseEvent.CLICK, onBluePlate, false, 0 ,true);
  4. yellow_plate_btn.addEventListener(MouseEvent.CLICK, onYellowPlate, false, 0, true);
  5. beige_plate_btn.addEventListener(MouseEvent.CLICK, onBeigePlate, false, 0 , true);
  6. salad_btn.addEventListener(MouseEvent.CLICK, onSalad, false, 0, true);
  7. banana_btn.addEventListener(MouseEvent.CLICK, onBanana, false, 0, true);
  8. steak_btn.addEventListener(MouseEvent.CLICK, onSteak, false, 0, true);
  9.  
  10. function onBluePlate(evt:MouseEvent):void{
  11. beigePlate.alpha = 0;
  12. yellowPlate.alpha = 0;
  13. bluePlate.alpha = 97;
  14. };
  15.  
  16. function onBeigePlate(evt:MouseEvent):void{
  17. bluePlate.alpha = 0;
  18. yellowPlate.alpha = 0;
  19. beigePlate.alpha = 97;
  20. };
  21.  
  22. function onYellowPlate(evt:MouseEvent):void{
  23. bluePlate.alpha = 0;
  24. beigePlate.alpha = 0;
  25. yellowPlate.alpha = 97;
  26. };
  27.  
  28. function onSalad(evt:MouseEvent):void{
  29. banana.alpha = 0;
  30. steak.alpha = 0;
  31. salad.alpha = 97;
  32. };
  33.  
  34. function onBanana(evt:MouseEvent):void{
  35. salad.alpha = 0;
  36. steak.alpha = 0;
  37. banana.alpha = 97;
  38. };
  39.  
  40. function onSteak(evt:MouseEvent):void{
  41. salad.alpha = 0;
  42. banana.alpha = 0;
  43. steak.alpha = 97;
  44. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement