Skip to main content
Known Participant
November 10, 2009
Answered

Loading a file from user's computer

  • November 10, 2009
  • 1 reply
  • 553 views

Hi,

In my Flash application, I would like a user to be able to import a picture from their hard drive. Basically, the app allows the user to customize an object. One of the steps of customization should be to add an image of their choice.

Is there a way  in Flash to allow the user to pick a file from their hard drive, which is then read into memory and made accessible to an application? I would like to take the data and upload it to a server to store it for future sessions.

Thanks!

This topic has been closed for replies.
Correct answer kglad

the filereference class has an upload() method that allows users to upload a local file to your server (or you can load directly into your swf if you target fp 10).

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
November 10, 2009

the filereference class has an upload() method that allows users to upload a local file to your server (or you can load directly into your swf if you target fp 10).

SuOn696Author
Known Participant
November 10, 2009

Awesome, that sounds like just what I need!

kglad
Community Expert
Community Expert
November 11, 2009

good.