MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 321

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

Camera.names
Availability
Flash Player 6.
Usage
Camera.names
Note: The correct syntax is
cam_array = Camera.names
Description
Read-only class property; retrieves an array of strings reflecting the names of all available cameras
without displaying the Flash Player Privacy Settings panel. This array behaves the same as any
other ActionScript array, implicitly providing the zero-based index of each camera and the
number of cameras on the system (by means of
see the
Array class
Calling the
Camera.names
may take several seconds to build the array. In most cases, you can just use the default camera.
Example
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.
cam_array = Camera.names;
if (cam_array.length == 1){
my_cam = Camera.get();
}
else {
System.showSettings(3);
my_cam = Camera.get();
}
See also
,
Camera.get()
Camera.onActivity
Availability
Flash Player 6.
Usage
active_cam.onActivity = function(activity) {
// your statements here
}
Parameters
A Boolean value set to
activity
it stops.
Returns
Nothing.
Camera.names
. To determine the name of the current camera, use
entry.
property requires an extensive examination of the hardware, and it
,
Camera.index
Camera.name
true
. To assign the return value to a variable, use syntax like
Camera.names.length
when the camera starts detecting motion,
.
active_cam.name
). For more information,
when
false
Camera.onActivity
321

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Table of Contents