MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Spezifikationen Seite 211

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 369
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 210
20
Camera.onActivity
Availability
Flash Player 6.
Flash Communication Server MX (not required).
Usage
activeCamera.onActivity = function(activity) {
// Your code here
}
Parameters
activity A Boolean value set to true when the camera starts detecting motion, false when
it stops.
Returns
Nothing.
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
activity value.
To specify the amount of motion required to invoke
Camera.onActivity(true) and the
amount of time that must elapse without activity before invoking
Camera.onActivity(false),
use
Camera.setMotionLevel.
Example
The following example displays true or false in the Output window when the camera starts or
stops detecting motion.
// Assumes a Video object named "myVideoObject" is on the Stage
c = Camera.get();
myVideoObject.attachVideo(c);
c.setMotionLevel(10, 500);
c.onActivity = function(mode)
{
trace(mode);
};
See also
Camera.setMotionLevel
Seitenansicht 210
1 2 ... 206 207 208 209 210 211 212 213 214 215 216 ... 368 369

Kommentare zu diesen Handbüchern

Keine Kommentare