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
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
Availability: ActionScript 1.0; Flash Player 6
Property summary
Modifiers
Property
activityLevel:Number
[read-only]
bandwidth:Number
[read-only]
currentFps:Number
[read-only]
fps:Number
only]
height:Number
only]
index:Number
only]
Camera.get()
Description
A numeric value that specifies the amount of motion
the camera is detecting.
An integer that specifies the maximum amount of
bandwidth the current outgoing video feed can use, in
bytes.
The rate at which the camera is capturing data, in
frames per second.
[read-
The maximum rate at which you want the camera to
capture data, in frames per second.
[read-
The current capture height, in pixels.
[read-
A zero-based integer that specifies the index of the
camera, as reflected in the array returned by
Camera.names.
, Flash Player
Camera.get()
method.
Camera
381
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?