How to select different web cams with getCamera()

Hi,

I am building a flash video surveillance app and I have ran into difficulty selecting between two different cams attached to my computer.

I am using AS3 to select a cam:


aCameras[CameraNum] = Camera.getCamera();

The above code always selects the default cam.

So I have used the “names” property of cams like this:


var tempCam:String = Camera.names[CameraNum]
aCameras[CameraNum] = Camera.getCamera(tempCam);

The above code does not work!

Does anyone know how this is done?

Thanks,

waffe