Webcam Color Detection

Hi!

So I’m working on a school project that will work so that a webcam can scan a grid of colors and determine what color it is and there by playing a sound tha is connected to that color. You can then create music by drawing different colors on a grid.
I know that this is doable in AS3, I just don’t know how exactly since im kind of new to this.

So i managed to import the webcam image to flash, and that’s all. How do I Proceed?

  • How do i get the webcam to detect colors? (Green, Blue, Red, Yellow and Black)
  • How do i connect these color detections to start playing a sound/movieclip?

If anyone has the answers for this I’m really gratefull.
Thanks in advance!

I’ll attach the .fla if anyone wants to see how far I’ve come…