Webcam Help acivityLevel

Hey basically I’m tyrying to compare the activity levels from two seperate webcamsa nd have it react based on which is higher. When I run this it traces the activityLevel as -1 which according to adobe means the video wasn’t attached. I am new and as far as I know I did attach the video. Please help. Thanks in advance.

import flash.events.Event;
import flash.text.TextField;
import flash.events.ActivityEvent;

fscommand(“fullscreen”, “true”);
fscommand(“allowscale”, “false”);

var cam1:Camera = Camera.getCamera(“0”);
var cam2:Camera = Camera.getCamera(“1”);
var vid1:Video = new Video();
var vid2:Video = new Video();
var v1 = cam1.activityLevel
var v2 = cam2.activityLevel

//******************************************

vid1.attachCamera(cam1);
container.addChild(vid1);

vid1.x = -150;
vid1.y = -150;
/vid1.alpha = .5;/

//******************************************

vid2.attachCamera(cam2);
container2.addChild(vid2);

vid2.x = -150;
vid2.y = -150;
/vid2.alpha = .5;/

//******************************************

addEventListener(Event.ENTER_FRAME, butt);
function butt(e:Event){
trace(“activityLevel=” + container.activityLevel);
trace(“v1=” + v1);
}

addEventListener(Event.ENTER_FRAME, butt1);
function butt1(e:Event){

    trace("cam2 ="+cam2.activityLevel);

}