1 Reply Latest reply on Sep 15, 2006 4:12 AM by Newsgroup_User

    Houston, I have a problem!


      I’m developing a online photographic printing system that allows user to upload their images and order prints from it.

      But I’m having a hard time with the FileReferenceList and FileReference classes, is not that isn’t uploading, but I’m having no feedback on the files that have been uploaded.

      So what is worng with this? onOpen seems don’t work neither any FileReference events. I have feedback from onSelect and onCancel.

      Thanks in advance.

        • 1. Re: Houston, I have a problem!
          Level 7
          FileReferenceList does not invoke the events you need. You need to add the
          listener to each FileReference in the list.

          listener.onSelect = function(selectedFile:FileReferenceList) {
          var list:Array = selectedFile.fileList;
          for(var i:Number = 0; i < list.length; i++) {

          list .addListener(this); // <<<<<

          statusArea.text += "Attempting to upload " + list
          .name + "\n";
          trace("name: " + item.name);
          list .upload("upload.php");