Ciao a tutti ... ho bisogno di aiuto!!

ho creato un semplice SWF che cattura immagini dalla webcam utilizzando la classe Camera. il problema arriva quando devo salvare l'immagine.

devo salvarla in una posizione ben specifica e non dove vuole l'utente;

questo è il codice flash
codice:
import flash.media.Camera;
import flash.media.Video;
import com.adobe.images.JPGEncoder;
import com.adobe.images.BitString;
import flash.net.FileReference;
import flash.events.MouseEvent;
import fl.controls.Label;

var camera:Camera = Camera.getCamera();
var vid:Video = new Video(200,300);
var ref:FileReference=new FileReference();

camera.setQuality(300, 300);
	vid.smoothing = true;
	vid.attachCamera(camera);
	vid.x = stage.stageWidth / 2 - vid.width / 2;
	vid.y = 20;

	addChild(vid);
	cap.addEventListener(MouseEvent.CLICK, cattura);
	stage.removeChild(cap);
	var mex:Label=new Label();
	mex.text = 'Mi disp... la tua Webcam non è supportata =(';

function cattura(mouseEvent:MouseEvent)
{

	var bitmap:BitmapData = new BitmapData(vid.width,vid.height);
	bitmap.draw(vid);
	var variables:URLVariables=new URLVariables();
	variables.png = bitmap;
	var richiesta:URLRequest=new URLRequest();
	richiesta.url = 'http://localhost:8888/save.php';
	richiesta.method = URLRequestMethod.POST;
	richiesta.data = variables;
	var loader:URLLoader=new URLLoader();
	loader.dataFormat = URLLoaderDataFormat.BINARY;

}
nella funzione cattura() ho provato ma senza successo a inviare un array di byte a php;
potete darmi una mano?? senza PHP sarebbe meglio ma anche se c'è non importa

grazie in anticipo