EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 315

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Camera.get() 315
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 doesnt support the value you set here, this frame rate will not be achieved.
To set a desired value for this property, use Camera.setMode().
To determine the rate at which the camera is currently capturing data, use the
Camera.currentFps property.
Example
The following example sets the fps rate of the active camera, myCam.fps, to the value provided by
the users text box,
this.config.txt_fps.
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.setMode()
Camera.get()
Availability
Flash Player 6.
Usage
Camera.get([index])
Note: The correct syntax is
Camera.get(). To assign the Camera object to a variable, use syntax like
active_cam = Camera.get().
Parameters
index
An optional zero-based integer that specifies which camera to get, as determined from
the array returned by the
Camera.names property. To get the default camera (which is
recommended for most applications), omit this parameter.

Table of Contents

Related product manuals