Video / microphone

hey, been playing around with the video and microphone-in functions on flash. As far as playstation eye toy-style games are concerned was wondering if there was anyway of measuring motion in a video, or maybe colour in certain areas of the video.

would be cool if this was possible on flash!

Thanks

Sam