Skip navigation
Currently Being Moderated

FileReference.load without selecting a file

Aug 17, 2011 11:18 AM

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!

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points