Pacman in AS3

anybody here know any links / tutorials on how to make a pacman game in AS3? More than anything, I just need the code for the AI of the enemies…