Please download the open source code for AS3 here http://ostrichflash.wordpress.com along with documentation and examples.
The ball follows your hand as you wave it at a Web cam. It helps to twiddle your fingers. This example was done quickly and for demonstration only. Please visit our exciting Blog at http://interactivemultimedia.wordpress.com
Supporting Samples (Please note, only one Cam works at a time):