Tutorial Actionscript 3 – How to use a webcam on Flash
Aca les dejo un ejemplo de como usar su camara web con actionscript. Realmente no tiene ninguna ciencia.
Aca el codigo, mas abajo pueden ver y/o descargar el ejemplo
1 2 3 4 5 6 7 8 9 10 | //Creo una instancia de video de 640x480 video = new Video(640, 480); //Obtengo la referencia a la camara camara = Camera.getCamera(); //setMode configura el width, height y framerate de la camara camara.setMode(640, 480, 30); //Atacho la camara al video. video.attachCamera(camara); //finalmente agrego el video al scenario addChild(video); |


genial bien
Don’t forget to correctly define the camera and video variable types:
var video:Video = new Video(640, 480);
var camara:Camera = Camera.getCamera();
Very nice article…
Hi Can you help me ? i use this to turn on webcam but how i can show my webcam image to other people ?
I hope u can help me.
John: Sure, if you download the example you will see, the type of the vars are defined. In the post is only an example of how to use it. Have not the definition var too.
Carlos: To do that, you have to stream your webcam. This must be done using a server like Flash Media Server or RED5. Look for streaming in google you will found a lot of info.