Hello everbody,
I'm using the HTTPService to get a php page that returns an xml. The problem is that when I run HTTPService, he is searchig the ''crossdomain'' at ''localhost'' ????????? and also excute search on localhost ??????? Even if I choose a different path!!
%26lt;?xml version=''1.0'' encoding=''utf-8''?%26gt;
%26lt;mx:Application
?xmlns:mx=''http://www.adobe.com/2006/mxml''
?layout=''vertical''
?creationComplete=''security(); test.send();''%26gt;
%26lt;mx:HTTPService
?resultFormat=''e4x''
?id=''test''
?showBusyCursor=''true''
?url=''{caminho}''
?method=''GET''
?fault=''{falhouHTTP(event);}''
?result=''{resultadoHTTP(event.result);}''%26gt;
%26lt;/mx:HTTPService%26gt;
private function secury():void
{
?Security.allowDomain(''*'');
?Security.loadPolicyFile(''http://teste/pastas/crossdomain.xml'');
}
The code is not anything very different from what is on the Internet, only uses the security to enable the ''https''. If anyone can help thank you very much, as I tried everywhere on the internet and I do not know what else to try.HTTPService accessing localhost crazy !?
What's ''caminho'' set to?
HTTPService accessing localhost crazy !?
Hello,
The ''caminho'' means PATH ;P, but solved my problem with this topic:
http://forums.adobe.com/message/2317581#2317581
Project %26gt; Export Release Build
bye