Camera.name
Availability
Flash Player 6.
Usage
active_cam.name:String
Description
Read-only property; a string that specifies the name of the current camera, as returned by the
camera hardware.
Example
The following example displays the name of the default camera in a text field. In Windows, this
name is the same as the device name listed in the Scanners and Cameras Control Panel. Create a
new video instance by selecting New Video from the Library options menu. Add an instance to
the Stage and give it the instance name
1 of the Timeline:
var my_cam:Camera = Camera.get();
var my_video:Video;
my_video.attachVideo(my_cam);
this.createTextField("name_txt", this.getNextHighestDepth(), 0, 0, 100, 22);
name_txt.autoSize = true;
name_txt.text = my_cam.name;
See also
Camera.get(),
Camera.names
188
Chapter 2: ActionScript Language Reference
. Then add the following ActionScript to Frame
my_video
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?