A maze engine in flash

okay, well i was just thinking if it’s possible to make a maze engine in flash like the old pacman games.

a simple maze
a yellow dot
some other dots{monsters}
and little red dots for food

if anyone knows of a good tutorial about classes in mx…post the address here please