Advertisement
Guest User

Untitled

a guest
May 6th, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. //**********************************************
  2. ////////////// Events /////////////////
  3. //**********************************************
  4.  
  5. btn_alphacubePlus.addEventListener (MouseEvent.CLICK, alphacubePlus);
  6. btn_alphacubeMinus.addEventListener (MouseEvent.CLICK, alphacubeMinos);
  7. btn_rotatecubePlus.addEventListener (MouseEvent.CLICK, rotatecubePlus);
  8. btn_rotatecubeMinus.addEventListener (MouseEvent.CLICK, rotatecubeMinus);
  9. //*************************************************************************
  10. btn_rotatepentagonPlus.addEventListener (MouseEvent.CLICK, rotatepentagonPlus);
  11. btn_rotatepentagonMinus.addEventListener (MouseEvent.CLICK, rotatepentagonMinos);
  12. btn_alphapentagonPlus.addEventListener (MouseEvent.CLICK, alphapentagonPlus);
  13. btn_alphapentagonMinus.addEventListener (MouseEvent.CLICK, alphapentagonMinos);
  14.  
  15.  
  16.  
  17. /*
  18. ****************************************
  19. ////////// Functions /////////////
  20. ****************************************
  21. */
  22.  
  23. function alphacubePlus(evn:MouseEvent) {
  24. mc_yellow.alpha += 10;
  25. }
  26. function rotatecubePlus(evn:MouseEvent) {
  27. mc_yellow.rotation += 10;
  28. }
  29. function alphacubeMinus(evn:MouseEvent) {
  30. mc_yellow.alpha -= 10;
  31. }
  32. function rotatecubeMinus(evn:MouseEvent) {
  33. mc_yellow.rotation -= 10;
  34. }
  35. function rotatepentagonPlus(evn:MouseEvent) {
  36. mc_green.rotation += 10;
  37. }
  38.  
  39. function rotatepentagonMinus(evn:MouseEvent) {
  40. mc_green.rotation -= 10;
  41. }
  42.  
  43. function alphapentagonPlus(evn:MouseEvent) {
  44. mc_green.alpha += 10;
  45. }
  46. function alphapentagonMinus(evn:MouseEvent) {
  47. mc_green.alpha -= 10;
  48. }
  49. function pentagonRotateMinos(evn:MouseEvent) {
  50.  
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement