Posted by VitaminB | Posted in Webcam | Posted on 06-06-2008
Tags: ActionScript, Flash, Motion, Webcam
Detecting motion via webcam in Flash allows us to develop applications completely based on motion interaction. In the example below I use the camera class in flash to detect motion via a webcam. I create 2 hotspots in the swf and as soon as the pixel brightness or colour change it fires a command via ActionScript and use the caurina.tween class to navigate through the content. Obviously a webcam is required to view the example below.
This enable us to develop applications completely based on motion interactions and allows application developers to create applications aimed at users unable to use a keyboards or mouse. This also allows us to create very interesting art installations. For instance a flash application being projected on an entrance of a building greeting users as they walk in and reset as they pass a certain point.

