Since my AS3 and Php/Java knowledge is not good I got stuck on this problem.
I have a AS3 function that sends bitmap data to PHP file to save some image, and in this function I also added some other arguments and that new argument should give me a string value that i need.
private function saveImageForFacebook(evt:MouseEvent)
// Sends the Bitmap data to php
var bitmapData:BitmapData=new BitmapData(wheelCanvas.width, wheelCanvas.height);
var jpgEncoder:JPGEncoder = new JPGEncoder(80);
var byteArray:ByteArray = jpgEncoder.encode(bitmapData);
var header:URLRequestHeader = new URLRequestHeader ("Content-type", "application/octet-stream");
var jpgURLRequest:URLRequest = new URLRequest ("http://www.someurl.com/flash-test/saveimg.php");
jpgURLRequest.method = URLRequestMethod.POST;
jpgURLRequest.data = byteArray;
// Creates the string value that I need to use in saveimg.php
var suffixUrl:String = "";
for(var i:int=0; i < customizedColorArr.length; i++)
if(customizedColorArr[i] != "")
suffixUrl += "&" + customizedPartValueArr[i] + "=" + customizedColorArr[i];
suffixUrl = wheelName + "&variant_name=" + variantName + suffixUrl;
Somehow I need to trace "suffixUrl" value in my saveimg.php file, but i don't know how.
This is how my php file looks and where suffixUrl need to go.