![]() |
|
||||||||||
|
|||||
|
Using the xmlsocket protocol along with a specific port number, lets you retrieve policy files directly from an XMLSocket server, as shown in the following example:
Security.loadPolicyFile("xmlsocket://foo.com:414"); Эмм щас попробую 2 слэша поставить. - не помогло ,или я всеравно чето не так делаю? Security.loadPolicyFile("xmlsocket://localhost:6666"); Также попробовал грузить файл локально Security.loadPolicyFile("http://localhost/crossdomain.xml"); и вот что выдал лог: OK: Root-level SWF loaded: http://localhost/drag.swf OK: Searching for <allow-access-from> in policy files to authorize data loading from resource at xmlsocket://localhost:6666 by requestor from http://localhost/drag.swf OK: Policy file accepted: http://localhost/crossdomain.xml Warning: Timeout on xmlsocket://localhost:843 (at 3 seconds) while waiting for socket policy file. This should not cause any problems, but see http://www.adobe.com/go/strict_policy_files for an explanation. Warning: Timeout on xmlsocket://localhost:6666 (at 3 seconds) while waiting for socket policy file. This should not cause any problems, but see http://www.adobe.com/go/strict_policy_files for an explanation. Error: SWF from http://localhost/drag.swf may not connect to a socket in its own domain without a policy file. See http://www.adobe.com/go/strict_policy_files to fix this problem. Последний раз редактировалось vapes; 15.04.2008 в 15:29. |
![]() |
Часовой пояс GMT +4, время: 14:53. |
|
|
« Предыдущая тема | Следующая тема » |
|
|