1 Reply Latest reply on Apr 23, 2010 1:33 AM by Harry Kunz

    The location of the pic??

    jacky_38 Level 1

      Hello everyone,

      I would like to ask all of you a question.

       

       

      var imageTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png");
      var allTypes:Array = new Array(imageTypes);
      var fileRef:FileReference = new FileReference();browse_btn.addEventListener(MouseEvent.CLICK, browseBox);
      function browseBox(event:MouseEvent):void {
      fileRef.browse(allTypes);
      }

       

       

      In the above code,

      I can access the file from different drive in the browse,

      and I can get the file name by tracing fileRef.name,

      but I want to get the address of the file as well.

      if the address of the file I selected is D://work_folder/abc.jpg

      how can i get it by actionscript?