# Webcam Color Detection

**URL:** <https://forum.kirupa.com/t/webcam-color-detection/297709>\
**Category:** flash\
**Created:** [October 7, 2009, 1:09pm UTC](https://forum.kirupa.com/t/webcam-color-detection/297709 "2009-10-07T13:09:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Petteurr](https://avatars.discourse-cdn.com/v4/letter/p/df705f/32.png) [@Petteurr](https://forum.kirupa.com/u/Petteurr)\
**Post date:** [October 7, 2009, 1:09pm UTC](https://forum.kirupa.com/t/webcam-color-detection/297709/1 "2009-10-07T13:09:12Z")

</div>

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! ![](http://forum.kirupa.com/uploads/kirupa/4187/77fb0e195ffd970c.gif)

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