Advertisement
Braber01

Some Error

Jun 30th, 2011
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*Getting Can't Access property or Method of null object @
  2.  
  3. function aussieMouseOut(e:MouseEvent):void {
  4.     txtWheel.text = "";
  5. }//endaussieMouseOut
  6. */
  7. import flash.media.Sound;
  8. stop();
  9. var soundClip:Sound;
  10. function init():void {
  11.     soundClip = new Sound();
  12.     soundClip.load(new URLRequest(".\\Wheel of Fortune.mp3"));
  13.     soundClip.addEventListener(Event.COMPLETE,soundLoaded);
  14. }//end init()
  15.  
  16. init();
  17.  
  18. function soundLoaded(e:Event):void {
  19.     soundClip.play();
  20. }//end soundLoaded
  21.  
  22. txtWheel.text = "";
  23. this.aussie_btn.addEventListener(MouseEvent.MOUSE_OVER,aussieMouseOver);
  24. this.aussie_btn.addEventListener(MouseEvent.MOUSE_OUT,aussieMouseOut);
  25. this.aussie_btn.addEventListener(MouseEvent.CLICK,aussieClick);
  26.  
  27. this.bigMoney_btn.addEventListener(MouseEvent.MOUSE_OVER,moneyMouseOver);
  28. this.bigMoney_btn.addEventListener(MouseEvent.MOUSE_OUT,moneyMouseOut);
  29. this.bigMoney_btn.addEventListener(MouseEvent.CLICK,moneyClick);
  30.  
  31. this.finland_btn.addEventListener(MouseEvent.MOUSE_OVER,finlandMouseOver);
  32. this.finland_btn.addEventListener(MouseEvent.MOUSE_OUT,finlandMouseOut);
  33. this.finland_btn.addEventListener(MouseEvent.CLICK,finlandClick);
  34.  
  35. this.gameboy_btn.addEventListener(MouseEvent.MOUSE_OVER,gameboyMouseOver);
  36. this.gameboy_btn.addEventListener(MouseEvent.MOUSE_OUT,gameboyMouseOut);
  37. this.gameboy_btn.addEventListener(MouseEvent.CLICK,gameboyClick);
  38.  
  39. this.nes_btn.addEventListener(MouseEvent.MOUSE_OVER,nesMouseOver);
  40. this.nes_btn.addEventListener(MouseEvent.MOUSE_OUT,nesMouseOut);
  41. this.nes_btn.addEventListener(MouseEvent.CLICK,nesClick);
  42.  
  43. this.phillipine_btn.addEventListener(MouseEvent.MOUSE_OVER,phillipneMouseOver);
  44. this.phillipine_btn.addEventListener(MouseEvent.MOUSE_OUT,phillipneMouseOut);
  45. this.phillipine_btn.addEventListener(MouseEvent.CLICK,phillipneClick);
  46.  
  47. this.french_btn.addEventListener(MouseEvent.MOUSE_OVER,frenchMouseOver);
  48. this.french_btn.addEventListener(MouseEvent.MOUSE_OUT,frenchMouseOut);
  49. this.french_btn.addEventListener(MouseEvent.CLICK,frenchClick);
  50.  
  51. this.turnTable_btn.addEventListener(MouseEvent.MOUSE_OVER,turntableMouseOver);
  52. this.turnTable_btn.addEventListener(MouseEvent.MOUSE_OUT,turntableMouseOut);
  53. this.turnTable_btn.addEventListener(MouseEvent.CLICK,turntableClick);
  54.  
  55. this.uk_btn.addEventListener(MouseEvent.MOUSE_OVER,ukMouseOver);
  56. this.uk_btn.addEventListener(MouseEvent.MOUSE_OUT,ukMouseOut);
  57. this.uk_btn.addEventListener(MouseEvent.CLICK,ukClick);
  58.  
  59. function aussieMouseOver(e:MouseEvent):void {
  60.     txtWheel.text = "Aussie Wheel";
  61. }//end aussieMouseOver
  62.  
  63. function aussieMouseOut(e:MouseEvent):void {
  64.     txtWheel.text = "";
  65. }//endaussieMouseOut
  66.  
  67. function aussieClick(e:MouseEvent):void {
  68.     gotoAndStop("mnu_Aussie");
  69. }//endAussieClick
  70.  
  71. function moneyMouseOver(e:MouseEvent):void {
  72.     txtWheel.text = "Big Money Wheel";
  73. }//end moneyMouseOver
  74.  
  75. function moneyMouseOut(e:MouseEvent):void {
  76.     txtWheel.text = "";
  77. }//end moneyMouseOut
  78.  
  79. function moneyClick(e:MouseEvent):void {
  80.     gotoAndStop("mnu_BigMoney");
  81. }//end moneyClick
  82.  
  83. function finlandMouseOver(e:MouseEvent):void {
  84.     txtWheel.text = "Finnish Wheel";
  85. }//endfinlandMouseOver
  86.  
  87. function finlandMouseOut(e:MouseEvent):void {
  88.     txtWheel.text = "";
  89. }//end finlandMouseOut
  90.  
  91. function finlandClick(e:MouseEvent):void {
  92.     gotoAndStop("mnu_Finnish");
  93. }
  94.  
  95. function gameboyMouseOver(e:MouseEvent):void {
  96.     txtWheel.text = "Gameboy Wheel";
  97. }
  98.  
  99. function gameboyMouseOut(e:MouseEvent):void {
  100.     txtWheel.text = "";
  101. }
  102.  
  103. function gameboyClick(e:MouseEvent):void {
  104.     gotoAndStop("mnu_Gameboy");
  105. }
  106.  
  107. function nesMouseOver(e:MouseEvent):void {
  108.     txtWheel.text = "NES Wheel";
  109. }
  110. function nesMouseOut(e:MouseEvent):void {
  111.     txtWheel.text = "";
  112. }
  113.  
  114. function nesClick (e:MouseEvent):void {
  115.     gotoAndStop("mnu_NES");
  116. }
  117.  
  118. function phillipneMouseOver(e:MouseEvent):void {
  119.     txtWheel.text = "Phillipno Wheel";
  120. }
  121.  
  122. function phillipneMouseOut(e:MouseEvent):void {
  123.     txtWheel.text = "";
  124. }
  125.  
  126. function phillipneClick(e:MouseEvent):void {
  127.     gotoAndStop("mnu_Phillipno");
  128. }
  129.  
  130. function frenchMouseOver(e:MouseEvent):void {
  131.     txtWheel.text = "French Wheel";
  132. }
  133.  
  134. function frenchMouseOut(e:MouseEvent):void {
  135.     txtWheel.text = "";
  136. }
  137.  
  138. function frenchClick(e:MouseEvent):void {
  139.     gotoAndStop("mnu_French");
  140. }
  141.  
  142. function turntableMouseOver(e:MouseEvent):void {
  143.     txtWheel.text = "US Wheel";
  144. }
  145.  
  146. function turntableMouseOut(e:MouseEvent):void {
  147.     txtWheel.text = "";
  148. }
  149.  
  150. function turntableClick(e:MouseEvent):void {
  151.     gotoAndStop("mnu_US");
  152. }
  153. function ukMouseOver(e:MouseEvent):void {
  154.     txtWheel.text = "UK Wheel";
  155. }
  156.  
  157. function ukMouseOut(e:MouseEvent):void {
  158.     txtWheel.text = "";
  159. }
  160. function ukClick(e:MouseEvent):void {
  161.     gotoAndStop("mnu_UK");
  162. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement