# Webcam interaction

**URL:** <https://forum.kirupa.com/t/webcam-interaction/180912>\
**Category:** Uncategorized\
**Created:** [March 4, 2006, 4:18pm UTC](https://forum.kirupa.com/t/webcam-interaction/180912 "2006-03-04T16:18:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JUMBOshrimp](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@JUMBOshrimp](https://forum.kirupa.com/u/JUMBOshrimp)\
**Post date:** [March 4, 2006, 4:18pm UTC](https://forum.kirupa.com/t/webcam-interaction/180912/1 "2006-03-04T16:18:22Z")

</div>

ok … I’m doing an interactive Art peice - I have 1600 boxes being put onto the stage dynamically and I’m using a webcam to trigger them –

it works for the most part but i’ve had some weirdness – 1: I had a small portion in the upper left working but the rest didnt work and I can’t ever seem to get it to activate where I want.

Right now I have it set up to trigger all of the blocks when you activate the 0,0 point

```auto
var clr = _root.map.getPixel(0, 0);

```

but I need to get it so that it can trigger any point where the color is less than a preset I have.

```auto
blox*.outclr = clr;
  if (clr<12895941) {
   blox*.play();
  }

```

The file is at [http://www.mediaatomic.com/projects/HVCCam.fla](http://www.mediaatomic.com/projects/HVCCam.fla)

JÜMBOshrimp
