MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 492

Actionscript language reference
Table of Contents

Advertisement

Camera class
Availability
Flash Player 6.
Description
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
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.)
To create or reference a Camera object, use
Method summary for the Camera class
Method
Camera.get()
Camera.setMode()
Camera.setMotionLevel()
Camera.setQuality()
Property summary for the Camera class
Property (read-only)
Camera.activityLevel
Camera.bandwidth
Camera.currentFps
Camera.fps
Camera.height
Camera.index
492
Chapter 7: ActionScript for Flash
entry.)
Camera.get()
Description
Returns a default or specified Camera object, or
not available.
Sets aspects of the camera capture mode, including height, width, and
frames per second.
Specifies how much motion is required to invoke
Camera.onActivity(true)
motion before
Camera.onActivity(false)
Specifies the maximum amount of bandwidth that the current outgoing
video feed can use, in bytes per second.
Description
The amount of motion the camera is detecting.
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.
The rate at which you would like the camera to capture data, in frames
per second.
The current capture height, in pixels.
The index of the camera, as reflected in the array returned by
.
Camera.names
ActionScript for Flash
Camera.get()
.
null
and how much time should elapse without
is invoked.
CHAPTER 7
, Flash Player
if the camera is

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents