Onstatus (Camera.onstatus Handler) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Example
The following example displays true or false in the Output panel when the camera starts or
stops detecting motion:
// Assumes a Video object named "myVideoObject" is on the Stage
active_cam = Camera.get();
myVideoObject.attachVideo(active_cam);
active_cam.setMotionLevel(10, 500);
active_cam.onActivity = function(mode)
{
trace(mode);
}
See also
setMotionLevel (Camera.setMotionLevel method)

onStatus (Camera.onStatus handler)

onStatus = function(infoObject:Object) {}
Invoked when the user allows or denies access to the camera. If you want to respond to this
event handler, you must create a function to process the information object generated by the
camera.
When a SWF file tries to access the camera, Flash Player displays a Privacy dialog box that lets
the user choose whether to allow or deny access.
If the user allows access, the
invoked with an information object whose code property is "Camera.Unmuted" and
whose level property is "Status".
If the user denies access, the
invoked with an information object whose code property is "Camera.Muted" and whose
level property is "Status".
To determine whether the user has denied or allowed access to the camera without processing
this event handler, use the
Note: If the user chooses to permanently allow or deny access for all SWF files from a
specified domain, this handler is not invoked for SWF files from that domain unless the user
later changes the privacy setting. For more information, see
Availability: ActionScript 1.0; Flash Player 6
Parameters
infoObject:Object
Camera.muted
Camera.muted
property.
Camera.muted
- A parameter defined according to the status message.
property is set to false, and this handler is
property is set to true, and this handler is
Camera.get()
.
Camera
397

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF