Archive for March, 2007

Flex + Webcam + Motion Detection Code = Locomotion

Friday, March 30th, 2007

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!!

Guy Watson
Toby Tremayne

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.

Enjoy yourself Charlie Murphy!

Friday, March 23rd, 2007

Okay so I decided that I am too lazy to make the code handsome.  It is ugly and borderline unmaintainable.  That being said, “Enjoy yourself Charlie Murphy!”

Click here to download the code.

Click here to browse the code.

Mac OS X dock using Flex 2

Thursday, March 22nd, 2007

I thought it would be fun to try and create a Mac OS X dock using Adobe Flex 2.  Here is the result of a 2 night MXML and ActionScript slinging marathon.  I will post the code as soon as I tidy it up.

DISCLAIMER:

For those out there who love to hate. I know it is not perfect :)