I have created sample code here.
I need to send two calls on different URL by clicking on one Button.
In my code I have created one URL Request to some PHP link..(You can use HTTP service too..It does same problem)..When Request to URL sent , I just place another code to navigatetoURL to another link.You can see the result only works with naviagetoURL ..Call to PHP link used by URLRequest FAIL..
How can I come out from this Problem?
When I try to use two HTTPservice that calls to different URL on SingleButton Click, It fails with first call too..How can Flex work with Concurrent Calls /multiple calls with Single Button Click..?
I need to send two calls on different URL by clicking on one Button..How to achieve this?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
private function Click() : void
var req :URLRequest = new URLRequest("http://www.snowflax.com/Bluetoad/test_clone.php");
var loader:URLLoader = new URLLoader();
var params :URLVariables = new URLVariables();
params.p1 = "WHATEVER YOU WANT IT TO BE";
req.data = params;
req.method = URLRequestMethod.POST;
//PHP Call Hangs up here
var urlRequest:URLRequest = new URLRequest("http://google.com");