Any Ideas How To Create a Pacman-like Random Movement?

hiya… i really need all d help i can get rite now coz i’m in d middle of my school projet…\r\rhere goes>>\r\ri’m creating a game in Flash 5… it involves a character (moved by player) avoiding an enemy in a maze like area… (think Pacman)…\r\rnow, i’ve done my charater and maze… but i’ve not started on d enemy… \r\ri’ve read some tutes on random movement but it doesn’t involve a maze like area…it juz cuts across d screen randomly… \r\ru see, my maze is as follows >> 0 0 0 0 0 0 0 0\r 1 0 1 0 1 0 1 0\r 0 0 0 0 0 0 0 0\r 0 1 0 1 0 1 0 1\r 0 0 0 0 0 0 0 0\r 1 0 1 0 1 0 1 0\r 0 0 0 0 0 0 0 0 ( 8 x 8 )\r\rnow, i want my enemy to move only among d first 3 rows, stopping n lookin around in random spots to look around…\r\rany ideas…??\r\rbtw, i’m kinda new n scrap at scriptin so i need all d guidance n help i an get, it’d be good if u cld explain it to me as well…\r\rthankx…\r\r

You can get a complete Pacman at the flashkit downloads. Might help…

hiya, i’ve looked thru at d examples n to tell d truth, i don’t know wat’s goin on…\r\ri don’t understand a single thing…\r\rcan u teach me n guide me step by step…?