User Guide

Camera 381
Camera
Object
|
+-Camera
public class Camera
extends Object
The Camera class is primarily for use with Macromedia Flash Communication Server, but can
be used in a limited way without the server.
The Camera class lets you capture video from a video camera attached to the computer that is
running Macromedia Flash Player—for example, to monitor a video feed from a web camera
attached to your local system. (Flash provides similar audio capabilities; for more information,
see the Microphone class entry.)
Warning: When a SWF file tries to access the camera returned by
Camera.get(), Flash Player
displays a Privacy dialog box that lets the user choose whether to allow or deny access to the
camera. (Make sure your Stage size is at least 215 x 138 pixels for the Camera class examples;
this is the minimum size Flash requires to display the dialog box.) End users and
administrative users may also disable camera access on a per-site or global basis.
To create or reference a Camera object, use the
Camera.get() method.
Availability: ActionScript 1.0; Flash Player 6
Property summary
Modifiers Property Description
activityLevel:Number
[read-only]
A numeric value that specifies the amount of motion
the camera is detecting.
bandwidth:Number
[read-only]
An integer that specifies the maximum amount of
bandwidth the current outgoing video feed can use, in
bytes.
currentFps:Number
[read-only]
The rate at which the camera is capturing data, in
frames per second.
fps:Number [read-
only]
The maximum rate at which you want the camera to
capture data, in frames per second.
height:Number [read-
only]
The current capture height, in pixels.
index:Number [read-
only]
A zero-based integer that specifies the index of the
camera, as reflected in the array returned by
Camera.names.