Motionlevel (Camera.motionlevel Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

cameras_txt.html = true;
cameras_txt.border = true;
cameras_txt.wordWrap = true;
cameras_txt.multiline = true;
for (var i = 0; i<Camera.names.length; i++) {
cameras_txt.htmlText += "<li><u><a
href=\"asfunction:changeCamera,"+i+"\">"+Camera.names[i]+"</a></u></
li>";
}
function changeCamera(index:Number) {
my_cam = Camera.get(index);
my_video.attachVideo(my_cam);
camera_lbl.text = my_cam.index+". "+my_cam.name;
}
The
MovieClip.getNextHighestDepth()
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
See also
names (Camera.names property)

motionLevel (Camera.motionLevel property)

public motionLevel : Number [read-only]
A numeric value that specifies the amount of motion required to invoke
Camera.onActivity(true)
Video can be displayed regardless of the value of the
information, see
Camera.setMotionLevel()
Availability: ActionScript 1.0; Flash Player 6
Example
The following example continually detects the motion level of a camera feed. Create a new
video instance by selecting New Video from the Library options menu. Add an instance to the
Stage and give it the instance name
and give it the instance name motionLevel_lbl, a NumericStepper with the instance name
motionLevel_nstep
following ActionScript to Frame 1 of the Timeline:
var my_cam:Camera = Camera.get();
var my_video:Video;
my_video.attachVideo(my_cam);
// configure the ProgressBar component instance
MovieClip.getNextHighestDepth()
,
get (Camera.get method)
. Acceptable values range from 0 to 100. The default value is 50.
my_video
, and a ProgressBar with the instance name motion_pb. Then add the
method used in this example requires Flash Player
motionLevel
.
. Add a Label component instance to the Stage
method.
property. For more
Camera
391

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF