# Microphone volume and Webcam motion detect - Flash mx (V6)

**URL:** <https://forum.kirupa.com/t/microphone-volume-and-webcam-motion-detect-flash-mx-v6/265147>\
**Category:** flash\
**Created:** [July 4, 2008, 5:06pm UTC](https://forum.kirupa.com/t/microphone-volume-and-webcam-motion-detect-flash-mx-v6/265147 "2008-07-04T17:06:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Firewolf](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@Firewolf](https://forum.kirupa.com/u/Firewolf)\
**Post date:** [July 4, 2008, 5:06pm UTC](https://forum.kirupa.com/t/microphone-volume-and-webcam-motion-detect-flash-mx-v6/265147/1 "2008-07-04T17:06:26Z")

</div>

Hi,  
first thing I want to do is to detect motion in webcam video. I use this

```auto

vid.attachVideo(Camera.get()); 

```

code to get webcam video. Code works perfectly, but I have tried many codes to detect motion, but none of them works. So someone knows code for flash version 6?  
Second thing is that, I want to detect the volume level (I dont mean getvolume or something like that, i mean like is the owner of microphone shouting or whispering) in sound of microphone. I have found this code

```auto

sound.attachSound(Microphone.get());

```

but i can’t try it, because right now i havent got any microphones (i get headset like in half week). The problem is, i haven’t found any codes to get that volume level, so i like help with this thing also (but the webcam thing is **maybe** more important). Thanks for (coming?) help
