Advertisement
Braber01

Undefined Symbol Somewhere

Jun 29th, 2011
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. getting this Stack Trace:
  3. TypeError: Error #1010: A term is undefined and has no properties.
  4.     at WheelWithWheels_fla::MainTimeline/loadLetterBoard()[WheelWithWheels_fla.MainTimeline::frame62:103]
  5.     at WheelWithWheels_fla::MainTimeline/frame62()[WheelWithWheels_fla.MainTimeline::frame62:10]
  6.     at flash.display::MovieClip/gotoAndPlay()
  7.     at WheelWithWheels_fla::MainTimeline/onePlayerGame()[WheelWithWheels_fla.MainTimeline::frame61:9]
  8.  
  9. I have all this code in Frame 60*/
  10. import flash.events.KeyboardEvent;
  11. import flash.display.MovieClip;
  12.  
  13. var numTurns:Number = 7;
  14. var score:Number = 0;
  15.  
  16. var spinKey:uint = 32; //space
  17. var buyKey:uint = 66;//b
  18.  
  19. loadLetterBoard();
  20. function loadLetterBoard() {
  21.    
  22.     var topRow:Array = new Array();
  23.     var middleFirst:Array = new Array();
  24.     var middleSecond:Array = new Array();
  25.     var bottomRow:Array = new Array();
  26.    
  27.     for(var i:int=0;i<=13;i++){
  28.         var new_mc = new MovieClip();
  29.         addChild(new_mc);
  30.         topRow.push(new_mc);
  31.     };
  32.     topRow[0].mask = unused_mc;
  33.     topRow[0].x = 433.0;
  34.     topRow[0].y = 55.0;
  35.     topRow[0].width = 94.0;
  36.     topRow[0].height = 140.1;
  37.     topRow[1].mask = unused_mc;
  38.     topRow[1].x = 521.0;
  39.     topRow[1].y = 55.0;
  40.     topRow[1].width = 94.0;
  41.     topRow[1].height = 140.1;
  42.     topRow[2].mask = unused_mc;
  43.     topRow[2].x = 613.0;
  44.     topRow[2].y = 55.0;
  45.     topRow[2].width = 94.0;
  46.     topRow[2].height = 140.1;
  47.     topRow[3].mask = unused_mc;
  48.     topRow[3].x = 703.0;
  49.     topRow[3].y = 55.0;
  50.     topRow[3].width = 94.0;
  51.     topRow[3].height = 140.1;
  52.     topRow[4].mask = unused_mc;
  53.     topRow[4].x = 793.0;
  54.     topRow[4].y = 55.0;
  55.     topRow[4].width = 94.0;
  56.     topRow[4].height = 140.1;
  57.     topRow[5].mask = unused_mc;
  58.     topRow[5].x = 521.0;
  59.     topRow[5].y = 55.0;
  60.     topRow[5].width = 94.0;
  61.     topRow[5].height = 140.1;
  62.     topRow[6].mask = unused_mc;
  63.     topRow[6].x = 973.0;
  64.     topRow[6].y = 55.0;
  65.     topRow[6].width = 94.0;
  66.     topRow[6].height = 140.1;
  67.     topRow[7].mask = unused_mc;
  68.     topRow[7].x = 1063.0;
  69.     topRow[7].y = 55.0;
  70.     topRow[7].width = 94.0;
  71.     topRow[7].height = 140.1;
  72.     topRow[8].mask = unused_mc;
  73.     topRow[8].x = 1153.0;
  74.     topRow[8].y = 55.0;
  75.     topRow[8].width = 94.0;
  76.     topRow[8].height = 140.1;
  77.     topRow[9].mask = unused_mc;
  78.     topRow[9].x = 1243.0;
  79.     topRow[9].y = 55.0;
  80.     topRow[9].width = 94.0;
  81.     topRow[9].height = 140.1;
  82.     topRow[10].mask = unused_mc;
  83.     topRow[10].x = 1333.0;
  84.     topRow[10].y = 55.0;
  85.     topRow[10].width = 94.0;
  86.     topRow[10].height = 140.1;
  87.     topRow[11].mask = unused_mc;
  88.     topRow[11].x = 1423.0;
  89.     topRow[11].y = 55.0;
  90.     topRow[11].width = 94.0;
  91.     topRow[11].height = 140.1;
  92.     topRow[12].mask = unused_mc;
  93.     topRow[12].x = 1513.0;
  94.     topRow[12].y = 55.0;
  95.     topRow[12].width = 94.0;
  96.     topRow[12].height = 140.1
  97.    
  98.     for (var j:int = 0; i <= 15;i++){
  99.         addChild(new_mc);
  100.         middleFirst.push(new_mc);
  101.     };
  102.     middleFirst[0].mask = unused_mc;
  103.     middleFirst[0].x = 333.0;
  104.     middleFirst[0].y = 202.0;
  105.     middleFirst[0].width = 94.0;
  106.     middleFirst[0].height = 140.1;
  107.     middleFirst[1].mask = unused_mc;
  108.     middleFirst[1].x = 433.0;
  109.     middleFirst[1].y = 202.0;
  110.     middleFirst[1].width = 94.0;
  111.     middleFirst[1].height = 140.1;
  112.     middleFirst[2].mask = unused_mc;
  113.     middleFirst[2].x = 523.0;
  114.     middleFirst[2].y = 202.0;
  115.     middleFirst[2].width = 94.0;
  116.     middleFirst[2].height = 140.1;
  117.     middleFirst[3].mask = unused_mc;
  118.     middleFirst[3].x = 613;
  119.     middleFirst[3].y = 202.0;
  120.     middleFirst[3].width = 94.0;
  121.     middleFirst[3].height = 140.1;
  122.     middleFirst[4].mask = unused_mc;
  123.     middleFirst[4].x = 703.0;
  124.     middleFirst[4].y = 202.0;
  125.     middleFirst[4].width = 94.0;
  126.     middleFirst[4].height = 140.1;
  127.     middleFirst[5].mask = unused_mc;
  128.     middleFirst[5].x = 793.0;
  129.     middleFirst[5].y = 202.0;
  130.     middleFirst[5].width = 94.0;
  131.     middleFirst[5].height = 140.1;
  132.     middleFirst[6].mask = unused_mc;
  133.     middleFirst[6].x = 883.0;
  134.     middleFirst[6].y = 202.0;
  135.     middleFirst[6].width = 94.0;
  136.     middleFirst[6].height = 140.1;
  137.     middleFirst[7].mask = unused_mc;
  138.     middleFirst[7].x = 973.0;
  139.     middleFirst[7].y = 202.0;
  140.     middleFirst[7].width = 94.0;
  141.     middleFirst[7].height = 140.1;
  142.     middleFirst[8].mask = unused_mc;
  143.     middleFirst[8].x = 1063.0;
  144.     middleFirst[8].y = 202.0;
  145.     middleFirst[8].width = 94.0;
  146.     middleFirst[8].height = 140.1;
  147.     middleFirst[9].mask = unused_mc;
  148.     middleFirst[9].x = 1153.0;
  149.     middleFirst[9].y = 202.0;
  150.     middleFirst[9].width = 94.0;
  151.     middleFirst[9].height = 140.1;
  152.     middleFirst[10].mask = unused_mc;
  153.     middleFirst[10].x = 1243.0;
  154.     middleFirst[10].y = 202.0;
  155.     middleFirst[10].width = 94.0;
  156.     middleFirst[10].height = 140.1;
  157.     middleFirst[11].mask = unused_mc;
  158.     middleFirst[11].x = 1333.0;
  159.     middleFirst[11].y = 202.0;
  160.     middleFirst[11].width = 94.0;
  161.     middleFirst[11].height = 140.1;
  162.     middleFirst[12].mask = unused_mc;
  163.     middleFirst[12].x = 1423.0;
  164.     middleFirst[12].y = 202.0;
  165.     middleFirst[12].width = 94.0;
  166.     middleFirst[12].height = 140.1;
  167.     middleFirst[13].mask = unused_mc;
  168.     middleFirst[13].x = 1513.0;
  169.     middleFirst[13].y = 202.0;
  170.     middleFirst[13].width = 94.0;
  171.     middleFirst[13].height = 140.1;
  172.     middleFirst[14].mask = unused_mc;
  173.     middleFirst[14].x = 1603.0;
  174.     middleFirst[14].y = 202.0;
  175.     middleFirst[14].width = 94.0;
  176.     middleFirst[14].height = 140.1;
  177.     middleFirst[15].mask = unused_mc;
  178.     middleFirst[15].x = 1701.0;
  179.     middleFirst[15].y = 202.0;
  180.     middleFirst[15].width = 94.0;
  181.     middleFirst[15].height = 140.1;
  182.     /*
  183.     for (var i:int = 0; i <= 15;i++){
  184.         addChild(new_mc);
  185.         middleFirst.push(new_mc);
  186.     }
  187.     middleFirst[0].x = 333.0;
  188.     middleFirst[1].x = 433.0;
  189.     middleFirst[2].x = 523.0;
  190.     middleFirst[3].x = 613;
  191.     middleFirst[4].x = 703.0;
  192.     middleFirst[5].x = 793.0;
  193.     middleFirst[6].x = 883.0;
  194.     middleFirst[7].x = 973.0;
  195.     middleFirst[8].x = 1063.0;
  196.     middleFirst[9].x = 1153.0;
  197.     middleFirst[10].x = 1243.0;
  198.     middleFirst[11].x = 1333.0;
  199.     middleFirst[12].x = 1423.0;
  200.     middleFirst[13].x = 1513.0;
  201.     middleFirst[14].x = 1603.0;
  202.     middleFirst[15].x = 1701.0;
  203.     */
  204. }//end loadLetterboard
  205.  
  206.  
  207. this.txt_Turns.text = "Turns: " + numTurns.toString();
  208. this.txt_Score.text = "$" + score;
  209.  
  210. stage.addEventListener(KeyboardEvent.KEY_DOWN,keyDownListener);
  211.  
  212. function keyDownListener(e:KeyboardEvent):void {
  213.     if (e.keyCode == Keyboard.ENTER) {
  214.         //gotoAndPlay("SinglePlayerSolve")
  215.     }else if (e.keyCode == Keyboard.SPACE) {
  216.         //spin();
  217.         //gotoAndPlay("Spin")
  218.     }else if (e.keyCode == buyKey){
  219.         //buyVowel();
  220.         //gotoAndPlay("BuyVowel");
  221.     }
  222.    
  223. }//end keyDownListener
  224.  
  225. //Comment stop() out later just use for a Test
  226. stop();
  227.  
  228. I have no clue what else is wrong any help would be great
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement