![MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference Download Page 492](http://html1.mh-extra.com/html/macromedia/flex-flex-actionscript-language/flex-flex-actionscript-language_reference_3387192492.webp)
492
Chapter 7: ActionScript for Flash
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
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.)
To create or reference a Camera object, use
Camera.get()
.
Method summary for the Camera class
Property summary for the Camera class
Method
Description
Camera.get()
Returns a default or specified Camera object, or
null
if the camera is
not available.
Camera.setMode()
Sets aspects of the camera capture mode, including height, width, and
frames per second.
Camera.setMotionLevel()
Specifies how much motion is required to invoke
Camera.onActivity(true)
and how much time should elapse without
motion before
Camera.onActivity(false)
is invoked.
Camera.setQuality()
Specifies the maximum amount of bandwidth that the current outgoing
video feed can use, in bytes per second.
Property (read-only)
Description
Camera.activityLevel
The amount of motion the camera is detecting.
Camera.bandwidth
The maximum amount of bandwidth the current outgoing video feed
can use, in bytes.
Camera.currentFps
The rate at which the camera is capturing data, in frames per second.
Camera.fps
The rate at which you would like the camera to capture data, in frames
per second.
Camera.height
The current capture height, in pixels.
Camera.index
The index of the camera, as reflected in the array returned by
Camera.names
.
CHAPTER 7
ActionScript for Flash
Summary of Contents for FLEX-FLEX ACTIONSCRIPT LANGUAGE
Page 1: ...Flex ActionScript Language Reference...
Page 8: ......
Page 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0...
Page 76: ......
Page 133: ...break 133 See also for for in do while while switch case continue throw try catch finally...
Page 135: ...case 135 See also break default strict equality switch...
Page 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while...
Page 808: ...808 Chapter 7 ActionScript for Flash...
Page 810: ...810 Appendix A Deprecated Flash 4 operators...
Page 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code...
Page 816: ...816 Appendix B Keyboard Keys and Key Code Values...
Page 822: ...822 Index...