Pac man style point sytem

Hi, I’m working on a pacman style game, using Flash CS3 and as2.

I’m quite new to as2 and I’m having trouble working out the best way of doing the pixels that pac man collects.

At the moment the only method I can think of is hit testing each individual pixel (like I said, I’m quite new to as2). This would require a huge amount of code and I’m sure there’s a much better way of doing it. Mabye something to do with an array?

I’m quite good at using google and working things out so if someone could just point me in the right direction it would be hugely appreciated.

Sorry if this is a stupid question.

TIA
Cian