MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 322

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

Advertisement

Description
Event handler; invoked when the camera starts or stops detecting motion. If you want to respond
to this event handler, you must create a function to process its
To specify the amount of motion required to invoke
amount of time that must elapse without activity before invoking
use
Camera.setMotionLevel()
Example
The following example displays
stops detecting motion.
// Assumes a Video object named "myVideoObject" is on the Stage
my_cam = Camera.get();
myVideoObject.attachVideo(my_cam);
my_cam.setMotionLevel(10, 500);
my_cam.onActivity = function(mode)
{
trace(mode);
}
See also
Camera.onActivity
Camera.onStatus
Availability
Flash Player 6.
Usage
active_cam.onStatus = function(infoObject) {
// your statements here
}
Parameters
A parameter defined according to the status message.
infoObject
Returns
Nothing.
Description
Event handler; invoked when the user allows or denies access to the camera. If you want to
respond to this event handler, you must create a function to process the information object
generated by the camera.
When a SWF file tries to access the camera, Flash Player displays a Privacy dialog box that lets the
user choose whether to allow or deny access.
322
Chapter 12: ActionScript Dictionary
.
or
true
false
,
Camera.setMotionLevel()
activity
Camera.onActivity(true)
Camera.onActivity(false)
in the Output panel when the camera starts or
value.
and the
,

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