Dynamic Masks?

Hi. I have a project that needs to work like a scratch card. I’ve sorted out the scratch card bit where the user clicks ands scratches off the “foil” to reveal what’s underneath using a dynamic mask with createNewMovieclip() and setMask(), drawing rectangles over each other in the new mask movieclip. What I need to know: is there any way for me to automatically continue the program once the entire image is revealed by the mask? Basically, once the user has scratched off all the foil?

Shot

You could use the bitmapData class to check and see how many of the pixels are transparent… hrm. I’m sure there’s a better way to do that, but that’s the only thing that occurs to me off the top of my head.

Thanks guy. I’ll give it a bash.