# \[AS3\] Help in a Match3 game I'm creating

**URL:** https://forum.kirupa.com/t/as3-help-in-a-match3-game-im-creating/324486
**Category:** programming
**Created:** [August 23, 2011, 4:49pm UTC](https://forum.kirupa.com/t/as3-help-in-a-match3-game-im-creating/324486 "2011-08-23T16:49:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![drunkenlo](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@drunkenlo](https://forum.kirupa.com/u/drunkenlo)
#### Post date: [August 23, 2011, 4:49pm UTC](https://forum.kirupa.com/t/as3-help-in-a-match3-game-im-creating/324486/1 "2011-08-23T16:49:06Z")

</div>

I’m making this match 3 game on AS 3.0 Flash CS4 and I’m having this error:

TypeError: Error #1010: A term is undefined and has no properties.  
at monsterQ/getMatchHoriz()  
at monsterQ/lookForMatches()  
at monsterQ/setUpGrid()  
at monsterQ/startMatchThree()  
at monsterQ/startGame()  
at homeClass/startGame()

I’m not quite sure what did means. Can anyone help me?

Here are some of the codes I’ve put in.

```auto
function startGame () {
			// initialize game
			initializeGame ();
			
			// start Match 3
			startMatchThree ();
		}
		
		function initializeGame ()
		{
			// position playMC
			playMC.y = centerScreenY;
		}
		
		public function startMatchThree ()
		{
			grid = new Array ();
			for(var gridrows:int=0;gridrows<7;gridrows++) 
			{
				grid.push(new Array());
			}
			
			// set up game variables
			gameStartTime = getTimer ();
			isDropping = false;
			isSwapping = false;
			gameScore = 0;
			setUpGrid ();
			addEventListener(Event.ENTER_FRAME,movePieces);
			this.addEventListener(Event.ENTER_FRAME, gameLoop);
		}

```
