MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 316

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

Returns
If
is not specified, this method returns a reference to the default camera or, if it is in use
index
by another application, to the first available camera. (If there is more than one camera
installed, the user may specify the default camera in the Flash Player Camera Settings panel.) If
no cameras are available or installed, the method returns
If
is specified, this method returns a reference to the requested camera, or
index
not available.
Description
Method; returns a reference to a Camera object for capturing video. To actually begin capturing
the video, you must attach the Camera object to a Video object (see
Unlike objects that you create using the
reference the same camera. Thus, if your script contains the lines
and
second_cam = Camera.get()
(default) camera.
In general, you shouldn't pass a value for
to the default camera. By means of the Camera settings panel (discussed later in this section), the
user can specify the default camera Flash should use. If you pass a value for
trying to reference a camera other than the one the user prefers. You might use
cases—for example, if your application is capturing video from two cameras at the same time.
When a SWF file tries to access the camera returned by
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; this is the minimum size Flash requires to display
the dialog box.)
When the user responds to this dialog box, the
information object that indicates the user's response. To determine whether the user has
denied or allowed access to the camera without processing this event handler, use the
property.
Camera.muted
The user can also specify permanent privacy settings for a particular domain by right-clicking
(Windows) or Control-clicking (Macintosh) while a SWF file is playing, choosing Settings,
opening the Privacy panel, and selecting Remember.
316
Chapter 12: ActionScript Dictionary
constructor, multiple calls to
new
, both
and
first_cam
; simply use
index
Camera.get()
Camera.onStatus
.
null
Video.attachVideo()
Camera.get()
first_cam = Camera.get()
reference the same
second_cam
to return a reference
Camera.get()
index
index
, Flash Player displays a
event handler returns an
if it is
null
).
, you might be
in rare

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Table of Contents