quality_nstep.minimum = 0;
quality_nstep.maximum = 100;
quality_nstep.stepSize = 5;
quality_nstep.value = my_cam.quality;
function changeQuality() {
my_cam.setQuality(my_cam.bandwidth, quality_nstep.value);
}
quality_nstep.addEventListener("change", changeQuality);
See also
setQuality (Camera.setQuality method)
setMode (Camera.setMode method)
public setMode([width:Number], [height:Number], [fps:Number],
[favorArea:Boolean]) : Void
Sets the camera capture mode to the native mode that best meets the specified requirements.
If the camera does not have a native mode that matches all the parameters you pass, Flash
selects a capture mode that most closely synthesizes the requested mode. This manipulation
may involve cropping the image and dropping frames.
By default, Flash drops frames as needed to maintain image size. To minimize the number of
dropped frames, even if this means reducing the size of the image, pass
parameter.
favorArea
When choosing a native mode, Flash tries to maintain the requested aspect ratio whenever
possible. For example, if you issue the command
the maximum width and height values available on the camera are 320 and 288, Flash sets
both the width and height at 288; by setting these properties to the same value, Flash
maintains the 1:1 aspect ratio you requested.
To determine the values assigned to these properties after Flash selects the mode that most
closely matches your requested values, use
Availability: ActionScript 1.0; Flash Player 6
Parameters
[optional] - The requested capture width, in pixels. The default value is 160.
width:Number
[optional] - The requested capture height, in pixels. The default value is 120.
height:Number
[optional] - The requested rate at which the camera should capture data, in
fps:Number
frames per second. The default value is 15.
.
active_cam
setMode
,
Camera.width
Camera.height
for the
false
(
), and
400, 400, 30
, and
Camera.fps
Camera
399
.
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?