From flash, run php file to refresh xml file without popup window there is no passing of any data from flash to the php file or back to flash.just tying to run the php that writes an xml file.
forgot to add this
var phpPath:String;
var sendHeader:URLRequestHeader;
var sendReq:URLRequest;
var sendLoader:URLLoader;
tried this, doesn’t seem to work. maybe I need to add so
mybuton.addEventListener(MouseEvent.CLICK, fl_EnterFrameHandler_4);
function fl_EnterFrameHandler_4(event:Event):void
{
phpPath = "http://www.mysite.com/my_xml_file.php";
sendHeader = new URLRequestHeader("Content-type","application/octet-stream");
sendReq = new URLRequest(phpPath);
sendReq.requestHeaders.push(sendHeader);
sendReq.method = URLRequestMethod.POST;
}
While you create your URLRequest, you never actually send that request. You need to use URLLoader to do that: