12 Replies Latest reply: Jul 7, 2010 3:16 PM by dmeN RSS

    TypeError: Error #1006: value is not a function.

    Kyle517 Community Member

      I'm getting this error:


      TypeError: Error #1006: value is not a function.
          at project_fla::MainTimeline/createMap()
          at project_fla::MainTimeline/frame1()




      heres the actionscript:



      function createMap(target:Object, map:Array, tilesize:Number):void {
          for (var ix:Number=0; ix<map[0].length; ix++) {
              for (var iy:Number=0; iy<map.length; iy++) {
                  this["t"+String(ix)+"x"+String(iy)] = new Object();
                  this["t"+String(ix)+"x"+String(iy)] = new tile();
                  this["t"+String(ix)+"x"+String(iy)].x = Flxy(new Point(ix,iy), tilesize).x;
                  this["t"+String(ix)+"x"+String(iy)].y = Flxy(new Point(ix,iy), tilesize).y;



      What's wrong with the code?