# Newb OOP Problems (Error #1010)

**URL:** <https://forum.kirupa.com/t/newb-oop-problems-error-1010/308366>\
**Category:** flash\
**Created:** [April 21, 2010, 5:15pm UTC](https://forum.kirupa.com/t/newb-oop-problems-error-1010/308366 "2010-04-21T17:15:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![groog](https://avatars.discourse-cdn.com/v4/letter/g/cab0a1/32.png) [@groog](https://forum.kirupa.com/u/groog)\
**Post date:** [April 21, 2010, 5:15pm UTC](https://forum.kirupa.com/t/newb-oop-problems-error-1010/308366/1 "2010-04-21T17:15:36Z")

</div>

I’m trying to make a tile system. I’ve got a GrassTile class, Feild class, and in the feild calss a createFeild function. But i’m getting this error-

> TypeError: Error #1010: A term is undefined and has no properties.  
> at Feild/createFeild()  
> at tiles\_fla::MainTimeline/main()  
> at tiles\_fla::MainTimeline/frame1()

MAIN

```auto
import flash.display.*;
import flash.events.*;

function main()
{
	var feildWidth:int;
	var feildHeight:int;
	var i:int;
	var k:int;
	
	var level1:Feild = new Feild();
	level1.createFeild(10, 10);
}

main();

```

Feild

```auto
package
{
	import flash.display.*;
	import flash.events.*;
	
	public class Feild
	{
		function Feild()
		{
			
		}
		
		public function createFeild(w:int, h:int)
		{
			var feildArray:Array = new Array(new Array(w), new Array(h))
			for(var i:int = 0; i < w; i++)
			{
				var newTile:GrassTile = new GrassTile();
				//for(var k:int = 0; k < h; i++)
				//{
					feildArray*[0] = newTile;
				//}
			}
		}
	}
}

```

I don’t know what the error means, and google didn’t help 😛
