开发者

Flex App works locally ☼ Though once online, NetConnecton dosen't connect nor fault Event fires

I'm debugging my app locally that fetches data connecting to a AMFPHP gateway on my开发者_开发问答 host. When I run it locally, it works perfectly.

I have added the crossdomain.xml file at the root of the domain.

Now, when I uploaded the release onto my host, the NetConnection gives me back nothing, not even a Status (fault) event.

Flex SDK 4.1.0

Flash Player 10.1

crossdomain.xml in the root of my domain:

<?xml version="1.0"?> 
<!DOCTYPE cross-domain-policy SYSTEM "macromedia.com/xml/dtds/cross-domain-policy.dtd">; 
<cross-domain-policy> 
   <allow-access-from domain="*" /> 
</cross-domain-policy>

Any suggestions as to why?


The proper crossdomain.xml file policy for Flash 10.1 and over. (change * for security). The error was from my end.

<?xml version="1.0"?> 
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> 
<cross-domain-policy> 
     <site-control permitted-cross-domain-policies="all"/> 
     <allow-access-from domain="*" /> 
</cross-domain-policy>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜