lecosson / assql

Automatically exported from code.google.com/p/assql
0 stars 0 forks source link

asSQL on localhost server #89

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I have ActionScript code with asSQL connection. When I work in Flex
Builder and compile my project all fine, but when I copy Release files
exported from Flex to local Web WAMP server asSQL don't wotk.
I put crossdomain in root folder:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">

<cross-domain-policy>
<allow-access-from domain="*" to-ports="*"/>
<site-control permitted-cross-domain-policies="all"/>
</cross-domain-policy>

In script write:
Security.allowDomain("www.torovo.ru");
Security.loadPolicyFile("http://www.torovo.ru/crossdomain.xml");

I try many other ways, but asSQL don't work!

What is the expected output? What do you see instead?
Policyfiles.txt:
Ошибка: Запрос ресурса на xmlsocket://www.torovo.ru:80 
источника запроса из
http://www.torovo.ru/MapView.swf отклонен из-за 
отсутствия разрешений в
файле политики.
Ошибка: SWF-файлу от http://www.torovo.ru/MapView.swf не 
удалось
подключиться к сокету в своем собственном 
домене без файла политики. 
Сведения об устранении этой проблемы см. на 
веб-сайте
http://www.adobe.com/go/strict_policy_files_ru.
Ошибка: SWF-файлу от http://www.torovo.ru/MapView.swf не 
удалось
подключиться к сокету в своем собственном 
домене без файла политики. 
Сведения об устранении этой проблемы см. на 
веб-сайте
http://www.adobe.com/go/strict_policy_files_ru.

InternetExplorer:
Error #2044: Необработанный securityError:. text=Error #2048: 
Нарушение
изолированной среды: http://www.torovo.ru/script.swf не 
может загрузить
данные из www.torovo.ru:3128.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by artem.bo...@gmail.com on 5 Nov 2009 at 12:08

GoogleCodeExporter commented 9 years ago
I have the exact same problem. When I debug or run from Flash Builder it's all 
fine. Whenever I deploy it to wamp or open myproject.html file in another 
folder it would not connect with an IO error. Weird thing is when I navigate to 
flash builder's workspace folder and find the project's bin-debug folder and 
opened the html file there it works again...

Original comment by uo1979 on 8 Jul 2012 at 6:27