![MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference Download Page 399](http://html.mh-extra.com/html/macromedia/flash-8-actionscript-2-0-language/flash-8-actionscript-2-0-language_reference_687537399.webp)
Camera
399
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
false
for the
favorArea
parameter.
When choosing a native mode, Flash tries to maintain the requested aspect ratio whenever
possible. For example, if you issue the command
active_cam
.
setMode
(
400, 400, 30
), and
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
Camera.width
,
Camera.height
, and
Camera.fps
.
Availability:
ActionScript 1.0; Flash Player 6
Parameters
width
:Number
[optional] - The requested capture width, in pixels. The default value is 160.
height
:Number
[optional] - The requested capture height, in pixels. The default value is 120.
fps
:Number
[optional] - The requested rate at which the camera should capture data, in
frames per second. The default value is 15.
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...