MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Spécifications Page 211

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 369
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 210
1 2 ... 206 207 208 209 210 211 212 213 214 215 216 ... 368 369

Commentaires sur ces manuels

Pas de commentaire