Take photo from Webcam and save on server (Flash/PHP)

I’m able to display webcam video on a simple Flash file with this actionscript code I got from http://blog.728media.com/2009/02/24/actionscript-3-webcam-configure/

var bandwidth:int = 0; // Specifies the maximum amount of bandwidth that the current outgoing video feed can use, in bytes per second. To specify that Flash Player video can use as much bandwidth as needed to maintain the value of quality , pass 0 for bandwidth . The default value is 16384.
var quality:int = 100; // this value is 0-100 with 1 being the lowest quality. Pass 0 if you want the quality to vary to keep better framerates
var camera:Camera = Camera.getCamera();
camera.setQuality(bandwidth, quality);
camera.setMode(320,240,30,false); // setMode(videoWidth, videoHeight, video fps, favor area)
var video:Video = new Video();

But that’s as far as I get. How can I make Flash take a photo and save it on a server’s directory?

I usually program with PHP/MySQL

Thanks in advance,

Leonel :geek: