Ted Patrick > { Events & Community } > Adobe Systems


This profoundly affects the compatibility of socket communications through a firewall allowing access to ports below 1024!\0

Due to security changes in Flash Player 7,0,19,0 you can designate a custom location for a policy file as follows:

System.security.loadPolicyFile('http://www.powersdk.com:90/policy.xml')

You can also specify port level access within the Policy File as follows:

<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="*" to-ports="507" />
<allow-access-from domain="socket.mysite.com" to-ports="80" />
<allow-access-from domain="*.myothersite.com" to-ports="516-523"/>
<allow-access-from domain="www.myothersite.com" to-ports="507,516-523" />
<allow-access-from domain="www.mysite.com" to-ports="*" />
</cross-domain-policy>

The to-ports allows you to specify access at a port level, thus allowing access to ports below 1024 like Port 80. This opens the door to getting socket apps in Flash into corporate setttings along with getting Flash compeditive in the instant messaging space. This is a huge change for servers like Jabber as high port clients have been problematic as an admin must change the firewall settings. Port selection can make a huge difference in the number of compatible end users.

Links of Note:
Macromedia Security Details
Unity Policy File Notes

Special thanks to developers at Macromedia for this change, this is a profound advance for socket based communication with the Flash Player.

I never thought I would say it but, thanks Policy File!

Cheers,

ted ;)

0 Responses to “ XMLSocket on Port 80 via Flash Player 7,0,19,0 and Policy File....Amen! ”

Post a Comment



© 2008 Ted On Flash