User Guide
Camera class 15
See also
Camera.currentFps, Camera.setMode()
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
Camera.names. 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
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
Video.attachVideo()) or to a NetStream object (see NetStream.attachVideo()). (The
NetStream object is available only with Flash Media Server.)
NOTE
To assign the Camera object to a variable, use the following syntax:
var active_cam:Camera = Camera.get().
NOTE
The Camera.get() method returns a reference to a camera driver, not to a physical
camera.