Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Camera | |||
Object
|
+-Camera
public class Camera
extends Object
The Camera class is primarily for use with Flash Media 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 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
|
Modifiers |
Property |
Description |
|---|---|---|
|
|
activityLevel |
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. |
|
|
|
currentFps |
The rate at which the camera is capturing data, in frames per second. |
|
|
The maximum rate at which you want the camera to capture data, in frames per second. |
|
|
|
The current capture height, in pixels. |
|
|
|
A zero-based integer that specifies the index of the camera, as reflected in the array returned by |
|
|
|
motionLevel |
A numeric value that specifies the amount of motion required to invoke |
|
|
motionTimeOut |
The number of milliseconds between the time the camera stops detecting motion and the time |
|
|
A Boolean value that specifies whether the user has denied access to the camera ( |
|
|
|
A string that specifies the name of the current camera, as returned by the camera hardware. |
|
|
|
Retrieves an array of strings reflecting the names of all available cameras without displaying the Flash Player Privacy Settings panel. |
|
|
|
An integer specifying the required level of picture quality, as determined by the amount of compression being applied to each video frame. |
|
|
|
The current capture width, in pixels. |
Properties inherited from class Object constructor (Object.constructor property), __proto__ (Object.__proto__ property), prototype (Object.prototype property), __resolve (Object.__resolve property)
|
Event |
Description |
|---|---|
|
onActivity |
Invoked when the camera starts or stops detecting motion. |
|
Invoked when the user allows or denies access to the camera. |
|
Modifiers |
Signature |
Description |
|---|---|---|
|
|
Returns a reference to a Camera object for capturing video. |
|
|
|
setMode |
Sets the camera capture mode to the native mode that best meets the specified requirements. |
|
|
setMotionLevel |
Specifies how much motion is required to invoke |
|
|
setQuality |
Sets the maximum amount of bandwidth per second or the required picture quality of the current outgoing video feed. |
Methods inherited from class Object
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001478.html