2011-01-07 43 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文件驻留在计算机上发送信息给?