2011-01-07 42 views

回答

0

我想像你可以使用HTTPService類或的URLRequest(如果你不使用Flex)代碼將是這樣的:

var urlRequest:URLRequest = new URLRequest("http://192.168.1.100/test.php"); 

var urlVariables:URLVariables = new URLVariables(); 

urlVariables.testVarName = "example"; 
urlRequest.data = urlVariables; 

sendToUrl(urlRequest); 

相反,如果你想使用URLLoader來監聽響應,如果你要使用Flex HTTPService基本上將此功能包裝到一個類中,只需創建一個URL並調用myHTTPService.send([如果不是數據上可選參數]);

讓我知道如果這不起作用,你得到什麼樣的錯誤或行爲,還沒有實際嘗試過一個Android設備,但如果我也想知道方法的差異。

+0

因此,PHP文件駐留在計算機上發送mesange到? – FlashCreated 2011-01-07 22:00:35

0

因此,php文件駐留在計算機上發送信息給?