Video in flash: How did they do that?

Hi everyone,
I understand the basics of incorporating video in flash. But how do you mask a particualr object in the video so the background is white? Here are a couple of examples:

http://www.bigfatinstitute.org/index_flash.html
http://www.stevenslittle.com/

Thanks everyone in advance for the advice!

-Joe :cool: