Experiments with Motion Detection in the Flash
Basically it was used BitmapData Class and the methods: draw, threshold, getColorBoundsRect and getPixel. In the first three samples the detection is accomplished by the coordinates x and y (getColorBoundsRect) and in the last two samples for detection by colors (getPixel).
Simple detection
Detection and fire
Playing keyboard (with sound)
Playing boxes (with sound)
Color detection
October 22nd, 2007 at 10:52 pm
Erick, these are fantastic experiments, in that they are basic enough to grasp the fundamental possibilities. We have just returned from the Flash Forward conference in Boston, MA, and are full of ideas. Unfortunately, when it comes to using the camera class withOUT flash media server, Adobe’s documentation is sparse at best. If you don’t mind, what are some of your resources for learning this stuff? We are diving in, and are looking for answers, from which to build our own experiments. Again, these are great experiments!
November 10th, 2007 at 8:30 pm
[…] whole process is described in this tutorial. I also found some other examples. If you have any references on using webcam motion detection, please post it in the […]
March 9th, 2008 at 4:30 am
Could you post your sources ?
thanks
March 12th, 2008 at 10:22 am
This is amazing, exactly what i have been searching for.
Could you possibly send me the source codes for the colour detection, as I am intending on integrating this facility with motion detection to create a game.
If not could you produce/ supply me with a tutorial on how to complete this.
April 8th, 2008 at 4:36 pm
i’m trying to use some of the basic principles that you are using in these experiments. for now i’m just looking for a way to interact with something on the screen, like the first experiment with the red ball moving around. could you possibly send me the source code? thanks a lot.
April 8th, 2008 at 4:37 pm
p.s. i’m using a.s. 2.0
April 21st, 2008 at 7:15 am
Great work Erick. Would it be possible for you to send me the source of the Playing boxes (with sound.) Ive been struggling with something similar is AS3 for quite a while now.
Any help would be greatly appreciated!
June 3rd, 2008 at 2:43 am
hi! may i have the source code? tnk! :o)
June 19th, 2008 at 12:41 am
Cool work! Yes, can you share source code for study it and make it better? Thanks!