MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 315

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

Camera.fps
Availability
Flash Player 6.
Usage
active_cam.fps
Description
Read-only property; the maximum rate at which you want the camera to capture data, in frames
per second. The maximum rate possible depends on the capabilities of the camera; that is, if the
camera doesn't support the value you set here, this frame rate will not be achieved.
To set a desired value for this property, use
To determine the rate at which the camera is currently capturing data, use the
Camera.currentFps
Example
The following example sets the fps rate of the active camera,
the user's text box,
if (this.config.txt_fps != undefined) {
myCam.setMode(myCam.width, myCam.height, this.config.txt_fps, false);
}
Note: The setMode function does not guarantee the requested fps setting; it sets the fps you
requested or the fastest fps available.
See also
Camera.currentFps
Camera.get()
Availability
Flash Player 6.
Usage
Camera.get([index])
Note: The correct syntax is
active_cam = Camera.get()
Parameters
An optional zero-based integer that specifies which camera to get, as determined from
index
the array returned by the
recommended for most applications), omit this parameter.
property.
this.config.txt_fps
,
Camera.setMode()
. To assign the Camera object to a variable, use syntax like
Camera.get()
.
Camera.names
Camera.setMode()
myCam.fps
.
property. To get the default camera (which is
.
, to the value provided by
Camera.get()
315

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents