private var fileRef:FileReference
private function doCreationComplete():void
{
fileRef= new FileReference();
fileRef.addEventListener(Event.COMPLETE, completeHandler);
fileRef.addEventListener(ProgressEvent.PROGRESS, fileRef_progress);
fileRef.addEventListener(Event.SELECT, doSelect);
}
public function doBrowse(event:Event):void
{
try
{
fileRef.browse();
}
catch (error:Error)
{
trace("Unable to browse for files.");
}
}
public function doSelect(event:Event):void
{
txtPhoto.text = fileRef.name;
}
public function doSubmit(event:Event):void
{
var request:URLRequest = new URLRequest("http://localhost:8080/JustSms/com/contacts/serviceImpl/CSVReader");
var vars:URLVariables = new URLVariables();
vars.person = txtPerson.text;
request.data = vars;
fileRef.upload(request);
}
function completeHandler(event:Event):void
{
trace("uploaded");
}
private function fileRef_progress(evt:ProgressEvent):void
{
progressBar.visible = true;
}
처리되지 않은 의해 IOErrorEvent :. text = 오류 # 2038 : 파일 I/O 오류입니다.에서 uploadcontacts/doCreationComplete() [D : \ Flexspace \ SMS \ src \ uploadcontacts.mxml : 17] 을 업로드 할 때 uploadcontacts/___ TitleWindow1_creationComplete() [D : \ Flexspace \ SMS \ src \ uploadcontacts.mxml : 3]에서 을 플래시합니다. events :: EventDispatcher/dispatchEventFunction()파일 업로드
이 오류는 무엇입니까? 어떻게 처리 할 수 있습니까? Servltet을 다시 요청하는 올바른 방법입니까? plz 도와주세요 ..
여기서 Line : 17은? 무슨 lanaguage 당신이 서버와 통신하는 데 사용하고 있습니까? – Treby