• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

FileReference.load is not sending events.

New Here ,
Jul 30, 2010 Jul 30, 2010

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()
            }

Views

417

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 30, 2010 Jul 30, 2010

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 09, 2010 Aug 09, 2010

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines