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.
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);
}