Help in Maze AI (chasing)

ive post before about the game. kinda like pacman game. can anyone help me with the actionscript of the enemy? the enemy is only one and constantly chasing the user’s character through the maze.

onClipEvent(enterFrame){

coll = “”;
for(i =0; i<32;i++){
if (this.hitTest("_parent.dinding" + i)) {
coll = “hitted”;
_x = oldx;
_y = oldy;
} else {
if(coll != “hitted”){
coll = “not hit”;
}
}
}

oldx = _x;
oldy =_y;
}

this is the script i used for the user’s character. the character’s movement is fine and i need help on the AI of the enemy. can anyone help ?

since i cant upload my fla due to the size, here is the fla link :
betatesting.fla

Can you send it in MX format?

eh … i thougt, the latest one is in mx version? its not?

Well, I tried to open it with Flash MX (old I know :frowning: ), and it threw an invalid filetype exception I believe.