Muted (Camera.muted Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

See also
setMotionLevel (Camera.setMotionLevel method)
handler)

muted (Camera.muted property)

public muted : Boolean [read-only]
A Boolean value that specifies whether the user has denied access to the camera (
allowed access (
false
is invoked. For more information, see
Camera.onStatus
Availability: ActionScript 1.0; Flash Player 6
Example
In the following example, an error message could be displayed if
true. Create a new video instance by selecting New Video from the Library options menu.
Add an instance to the Stage and give it the instance name
ActionScript to Frame 1 of the Timeline:
var my_cam:Camera = Camera.get();
var my_video:Video;
my_video.attachVideo(my_cam);
my_cam.onStatus = function(infoObj:Object) {
if (my_cam.muted) {
// If user is denied access to their Camera, you can display an error
message here. You can display the user's Camera/Privacy settings again
using System.showSettings(0);
trace("User denied access to Camera");
System.showSettings(0);
}
};
See also
get (Camera.get method)
394
ActionScript classes
) in the Flash Player Privacy Settings panel. When this value changes,
,
onStatus (Camera.onStatus handler)
,
onActivity (Camera.onActivity
.
Camera.get()
my_cam.muted
. Then add the following
my_video
) or
true
evaluates to

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?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF