I was bored so I decided it would be cool to mess with Flex and a webcam. After a bit of research I came across 2 articles that inspired me. Many thanks to the following awesome coders!!
With the help of their articles, I wrote a Flex app that will increment a counter when it detects movement over a specific area of the screen. Click here to see the demo video. It stars me in my first ever action movie. Watch the counter increment as I wreak havoc on a 50×50 white square in the upper left corner of the screen.
Okay so the white square is kind of boring. The point is the collision detection. The square could easily be a speed bag or a slab of meat (Rocky Balboa style).
Click here for the source.
Click here to open the app. If you don’t have a web cam hooked up all you will get is a black screen.
Enjoy
Timothy Huertas
NOTE: The app is not perfect. In particular it has memory issues. All suggestions for improvement are welcome.