Copy link to clipboard
Copied
I am uploading multiple files, but before i send them to the server i want to read them into memory, easly done with FileReference.load(), or so i thought, i am not getting any response from the "load()" call, not on start, not on complete, and not progressevent. what have i missed.
private function RunOpp():void{
FileRefs = new FileReferenceList();
FileRefs.addEventListener(Event.SELECT,upLoadtoMe);
FileRefs.addEventListener(Event.CANCEL,UploadCancel);
FileRefs.browse();
}
private function upLoadtoMe(evt:Event):void{
Filey = new FileReference;
Filey.addEventListener(Event.COMPLETE,SendToDLL);
Filey.addEventListener(Event.OPEN,setupprog);
Filey.addEventListener(ProgressEvent.PROGRESS,FileLoadProgress);
Filey.addEventListener(IOErrorEvent.IO_ERROR,gotError);
Filey = FileRefs.fileList;
Filey.load()
}
Copy link to clipboard
Copied
what am i missing: how about a brain, or common sense, or a high IQ
spending several hours on this and i could not see that had not set my variable before i added my listeners. move the line up several lines and it works.
Copy link to clipboard
Copied
Do these help you ? I think you have a similar issue.
http://forums.adobe.com/message/2576081#2576081
http://forums.adobe.com/message/189595#189595
Thanks
Balakrishnan V