Update
Ok, you can now grab the MotionTracker source code (AS2 & AS3). Version 2 eventually will include the other methods for detecting and tracking motion which I mentioned. For now I have just included code for the technique used in the demo.
Download: AS3 Webcam Motion Tracking
Read : AS3 Webcam Motion Tracking »