MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Dokumentacja Strona 206

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 369
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 205
Client-Side Communication ActionScript 15
Example
The following example captures and displays video locally within a Video object named myVid
on the Stage.
myCam = Camera.get();
myVid.attachVideo(myCam);
See also
Camera.index, Camera.muted, Camera.names, Camera.onStatus, Camera.setMode,
NetStream.attachVideo, System.showSettings, Video.attachVideo
Camera.height
Availability
Flash Player 6.
Flash Communication Server MX (not required).
Usage
activeCamera.height
Description
Read-only property; the current capture height, in pixels. To set a value for this property, use
Camera.setMode.
Example
The following line of code updates a text box in the user interface with the current height value.
_root.txt_height = myCam.height;
See also the example for Camera.setMode.
See also
Camera.setMode, Camera.width
Camera.index
Availability
Flash Player 6.
Flash Communication Server MX (not required).
Usage
activeCamera.index
Description
Read-only property; a zero-based integer that specifies the index of the camera, as reflected in the
array returned by
Camera.names.
Example
The following example gets the camera that has the value of index.
myCam = Camera.get(index);
See also
Camera.get, Camera.names
Przeglądanie stron 205
1 2 ... 201 202 203 204 205 206 207 208 209 210 211 ... 368 369

Komentarze do niniejszej Instrukcji

Brak uwag