n0byk
16.01.2011, 03:13
Всем привет!
При скачивании php файла с сервера выдает ошибку [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2038"]
Что это означает? Объясните пожалуйста.
Вот код<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/08/25/creating-a-filereference-object-using-mxml-in-flex/ -->
<mx:Application name="FileReference_download_test_2"
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:net="flash.net.*"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private const DOWNLOAD_URL:String = "http://dev.ru/include/info.php";
private function btn_click(evt:MouseEvent):void {
var urlReq:URLRequest = new URLRequest(DOWNLOAD_URL);
fileReference.download(urlReq);
}
private function onEvent(evt:Event):void {
Alert.show(evt.toString(), evt.type);
}
]]>
</mx:Script>
<net:FileReference id="fileReference"
complete="onEvent(event);"
cancel="onEvent(event);"
httpStatus="onEvent(event);"
ioError="onEvent(event);" />
<mx:Button id="btn"
label="Download source"
click="btn_click(event);" />
</mx:Application>
Спасибо за внимание.
При скачивании php файла с сервера выдает ошибку [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2038"]
Что это означает? Объясните пожалуйста.
Вот код<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/08/25/creating-a-filereference-object-using-mxml-in-flex/ -->
<mx:Application name="FileReference_download_test_2"
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:net="flash.net.*"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private const DOWNLOAD_URL:String = "http://dev.ru/include/info.php";
private function btn_click(evt:MouseEvent):void {
var urlReq:URLRequest = new URLRequest(DOWNLOAD_URL);
fileReference.download(urlReq);
}
private function onEvent(evt:Event):void {
Alert.show(evt.toString(), evt.type);
}
]]>
</mx:Script>
<net:FileReference id="fileReference"
complete="onEvent(event);"
cancel="onEvent(event);"
httpStatus="onEvent(event);"
ioError="onEvent(event);" />
<mx:Button id="btn"
label="Download source"
click="btn_click(event);" />
</mx:Application>
Спасибо за внимание.