To capture I used
import flash.display.BitmapData;
win1.setSize(120,190);
win1._visible = false;
win1.contentPath = "holder";
one_slct.onRelease = function() {
var bmd:BitmapData = new BitmapData(60,95);
bmd.draw(_root.gmb_mc);
win1.content.attachBitmap(bmd,1);
win1.content._width = 120;
win1.content._height = 190;
{
win1._visible = !win1._visible;
}
};
(the captured movieclip displays in a UI LOADER) It works fine! But here I’m not certain how to add the CODE to export the win1 to the server and the CODE to receive the image in PHP?
I use this to send data from the submit form
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
sender.onRelease = function () {
senderLoad.thename = thename.text;
senderLoad.sendAndLoad("web-add: receiveLoad);
}
receiveLoad.onLoad = function () {
if(this.sentOk) {
_root.gotoAndStop("success");
}
else {
_root.gotoAndStop("failed");
}
}
and the PHP to capture
<?PHP
$to = "email";
$subject = "subject";
$headers = "From:" .$email."
";
$headers .= "Bcc: $email
";
$message = "Name: " . $thename;
$sentOk = mail("$to",$subject,$message,$headers);
echo $_POST["message"];
echo "sentOk=" . $sentOk;
[COLOR=darkolivegreen]How should the CODE be written to send the captured image? the CODE to get it in PHP?[/COLOR]