9 Replies Latest reply on Aug 17, 2011 4:54 PM by Damon Edwards

    FileReference.load without selecting a file

    Damon Edwards Level 3

      In the docs there's this sentence:

       

      "For content running in Flash Player, you must call the FileReference.browse() or FileReferenceList.browse() method before you call the load() method. However, content running in AIR in the application sandbox can call the load() method of a File object without first calling the browse() method."

       

      Underline is mine - this makes me assume I can somehow load a file into a filereference without waiting for the SELECT event..  But, I'm not seeing how to do it?  I know where the file is on the system and can load it up via new File('/my/path/file.ext') but I don't see how to pass that off to a filereference.  Any help is much appreciated!