User Guide

36 Client-Side ActionScript Language Reference
Example
The following example sends messages to the Output panel when video activity starts or stops.
Change the motion sensitivity value of 30 to a higher or lower number to see how different
values affect motion detection.
// assumes a Video object named "myVideoObject" is on the Stage
active_cam = Camera.get();
x = 0;
function motion(mode) {
trace(x + ": " + mode);
x++;
}
active_cam.onActivity = function(mode) {
motion(mode);
}
active_cam.setMotionLevel(30, 500);
myVideoObject.attachVideo(active_cam);
See also
Camera.activityLevel, Camera.motionLevel, Camera.motionTimeOut,
Camera.onActivity
Camera.setQuality()
Availability
Flash Player 6.
Flash Media Server (not required).
Usage
public setQuality([bandwidth:Number], [quality:Number]) : Void
Parameters
bandwidth An integer that specifies the maximum amount of bandwidth that the current
outgoing video feed can use, in bytes per second. To specify that Flash Video can use as much
bandwidth as needed to maintain the value of
quality, pass 0 for bandwidth. The default
value is 16384.