I recently had a problem with Security Policies with flash player; I suggest you to read the official documentation specially if you want to know what to do in several versions of Flash Player.
WhatI learn is too simple about loading a crossdomain.xml from a server:
- If you load the crossdomain.xml from an http request. Example:
Security.loadPolicyFile('http://www.danguer.com/crossdomain.xml'). The flash player sandbox will only allow to you swf to connect to ports over 1024
- If you want to load ports below this, you need to read the crossdomain from a port below 1024, for example:
Of course the most important about the last is that you can load from any port below 1024 and you’re granted to access any port on that server; you can use classes like
XMLSocket for connecting to other ports; so you can have a server listening to information from Flash, but in another to serve the policies. You can do for example a small server in PHP5 for example: http://devzone.zend.com/node/view/id/1086 which shows you to use this great feature in PHP5.
Hope this help you.