public static names : Array[read-only]
An array of strings conatining the names of all available video capture devices, including video capture cards and cameras. This API gets the names of all available video capture devices without displaying the Flash Player Privacy dialog box to the user. This array behaves the same as any other ActionScript array, providing the zero-based index of each camera driver and the number of camera drivers on the system (by means of the Camera.names.length property).
Flash Media Server (not required); Flash Player 6.
The following example uses the default camera unless more than one camera is available, in which case the user can choose which camera to set as the default camera. If only one camera is present, the default camera is used.
Create a new video instance by selecting New Video from the Library panel menu. Add an instance to the Stage and give it the instance name my_video. Then add the following code to Frame 1 of the Timeline:
var my_video:Video;
var cam_array:Array = Camera.names;
if (cam_array.length>1) {
System.showSettings(3);
}
var my_cam:Camera = Camera.get();
my_video.attachVideo(my_cam);