# Color Detection

**URL:** <https://forum.kirupa.com/t/color-detection/246087>\
**Category:** flash\
**Created:** [December 6, 2007, 10:58pm UTC](https://forum.kirupa.com/t/color-detection/246087 "2007-12-06T22:58:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esherido](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/esherido/32/2158_2.png) [@Esherido](https://forum.kirupa.com/u/Esherido)\
**Post date:** [December 6, 2007, 10:58pm UTC](https://forum.kirupa.com/t/color-detection/246087/1 "2007-12-06T22:58:16Z")

</div>

I’m using a web-cam to capture the color of an object, I want to know if there’s a way to determine the color of a certain pixel from the feed of a web-cam in Flash MX 2004. If it’s possible, how exactly would I go about doing it? Thanks! 😃

---

<div class="post-metadata">

**Author:** ![pantas](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pantas](https://forum.kirupa.com/u/pantas)\
**Post date:** [June 20, 2008, 10:44am UTC](https://forum.kirupa.com/t/color-detection/246087/2 "2008-06-20T10:44:33Z")

</div>

did you ever got the answer??

---

<div class="post-metadata">

**Author:** ![Esherido](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/esherido/32/2158_2.png) [@Esherido](https://forum.kirupa.com/u/Esherido)\
**Post date:** [June 20, 2008, 12:26pm UTC](https://forum.kirupa.com/t/color-detection/246087/3 "2008-06-20T12:26:18Z")

</div>

No.

---

<div class="post-metadata">

**Author:** ![pantas](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pantas](https://forum.kirupa.com/u/pantas)\
**Post date:** [June 25, 2008, 5:53pm UTC](https://forum.kirupa.com/t/color-detection/246087/4 "2008-06-25T17:53:33Z")

</div>

getPixel !

getPixel (x, y) and it will tell you the color of that pixel!

---

<div class="post-metadata">

**Author:** ![Esherido](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/esherido/32/2158_2.png) [@Esherido](https://forum.kirupa.com/u/Esherido)\
**Post date:** [June 25, 2008, 5:55pm UTC](https://forum.kirupa.com/t/color-detection/246087/5 "2008-06-25T17:55:35Z")

</div>

pantas, thanks, but that’s a Flash 8-only feature. I posted this in Flash MX 2004 for a reason.
