Macromedia flash media server 2-client-side actionscript language reference for flash media server 2 User Manual
Camera class
15
See also
Camera.get()
Availability
■
Flash Player 6.
■
Flash Media Server (not required).
Usage
public static get([index:Number]) : Camera
Parameters
index
An optional zero-based integer that specifies which camera driver to get, as
determined from the array returned by
. To get the default camera driver
(which is recommended for most applications), omit this parameter.
Returns
■
If
index
is not specified, this method returns a reference to the default camera driver or, if
it is in use by another application, to the first available camera driver. (If there is more
than one camera driver installed, the user may specify the default camera driver in the
Flash Player Camera Settings panel.) If no camera drivers are available or installed, the
method returns
than one camera driver installed, the user may specify the default camera driver in the
Flash Player Camera Settings panel.) If no camera drivers are available or installed, the
method returns
null
.
■
If
index
is specified, this method returns a reference to the requested camera driver, or
null
if it is not available.
Description
Method; returns a reference to a Camera object for capturing video. To actually begin
capturing the video, you must attach the Camera object either to a Video object (see
capturing the video, you must attach the Camera object either to a Video object (see
) or to a NetStream object (see
). (The
NetStream object is available only with Flash Media Server.)
NO
TE
To assign the Camera object to a variable, use the following syntax:
var active_cam:Camera = Camera.get()
.
NO
T
E
The
Camera.get()
method returns a reference to a camera driver, not to a physical
camera.