trace(mode);
}
See also
Camera.onActivity
Camera.onStatus
Availability
Flash Player 6.
Usage
active_cam.onStatus = function(infoObject:Object) : Void {
// your statements here
}
Parameters
A parameter defined according to the status message.
infoObject
Returns
Nothing.
Description
Event handler; 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
property is
level
•
If the user denies access, the
with an information object whose
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
Example
The following event handler writes the results of the
var my_cam:Camera = Camera.get();
var my_video:Video;
my_video.attachVideo(my_cam);
my_cam.onStatus = function(infoObj:Object) {
,
Camera.setMotionLevel()
Camera.muted
.
"Status"
Camera.muted
code
.
property.
Camera.muted
Camera.get()
property is set to
property is
code
"Camera.Unmuted"
property is set to
true
property is
"Camera.Muted"
.
method to the log file:
trace()
, and this handler is
false
and whose
, and this handler is invoked
and whose
level
Camera.onStatus
505
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?