2 Replies Latest reply on Apr 23, 2007 8:52 AM by jibysk

    please help how to get the full file path( the file which is in local system) in flash 8

    jibysk
      Hi All,

      It would be great if any one can help me about how to get the full file path( the file which is in local system) in flash 8.
      i do not want to use any server side uploading or downloading....i just want to view the image in loader component when we select image from any location in the hard disk using browse dialog box.

      here is my incomplete code ??? !!!

      import flash.net.FileReference;
      import mdm.FileSystem;
      var lo:mx.controls.Loader;
      var listener:Object = new Object();

      listener.onSelect = function(file:FileReference):Void {
      _root.pa.text = file.name;
      ////////////////////////////

      //////////////////

      }
      var fileRef:FileReference = new FileReference();
      var bro:Button;
      fileRef.addListener(listener);
      _root.bro.onRelease = function(){
      fileRef.browse([{description: "Images", extension: "*.jpg;*.gif;"}] );
      };

      It would be great if any one can help on this issue...

      thanks
      Jiby