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

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


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


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