Having trouble using AS3 Webservice
AS3 Webservice I'm using this library to connect to a database where I store and retrieve files that my program uses. When I test it locally, it works fine, but when I put it online it has trouble connecting, I ran some debugs inside the library and after "DESCRIPTION LOADED" is traced, nothing happens. Also I'm not really sure where to run traces to see what the problem is exactly, I ju开发者_C百科st removed the comments on some traces that were already there.
So to recap, when I run my program offline(locally) it runs fine, it connects, sends and receives no problem. Once online, it doesn't connect it doesn't even run the traces I have in the OperationSuccessful or OperationFailure functions.
So I'm wondering if anyone has been using this library successfully and could maybe share some tips or code that will help me, thank you!
EDIT
We seemed to have solved our problem with this method without using that third party webservice library.
I am going to assume a few things here.
1) the data server is not on the same domain.
2) the server with the data is open and not blocked by the firewall.
You need a crossdomain.xml file on the server with the data allowing the domain where the swf is located.
Something like this.
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain = "*"/>
</cross-domain-policy>
精彩评论