Skip to main content
Participant
May 13, 2009
Question

Reading files from local hard disk - Access Local Files Only

  • May 13, 2009
  • 3 replies
  • 686 views

Hi All,

I have a local flash file published as 'Access Local Files Only', to allow me to read from local filesystem.

What methods or classes can I use to read text and other files from the user's harddisk.

This is the first time I am trying to do something like this, all help is grealy appreciated.

Thanks

Andy

This topic has been closed for replies.

3 replies

andy_beeAuthor
Participant
May 15, 2009

Hi, thanks for the responses

I did some searching and found that the urlloader class is the right one for the job.

'Access Local Files Only' option is provided for this very purpose I believe.

If anyone has done something like this and have some sample code it would be awesome

Cheers

Andy

Michael Borbor
Inspiring
May 13, 2009

If you're targetting Flash Player 10 you could use FileReference.

kglad
Community Expert
Community Expert
May 13, 2009

are you creating an air file?  if not, you're very limited in what you can do with the user's file system.