views:

109

answers:

2

Is it possible with AS3 to prompt a file select screen to the user, get the selected file data and use it directly in the movie without the need to upload this file to the server first and then get it back? I want something like FileReference to enable the user to selected many image files then I want to display/manipulate these images directly in the movie.

+1  A: 

Native filesystem access is not permitted in Flash applications due to security issues. AIR bridges this gap while not compromising the security.

dirkgently
Native filesystem access is permitted when using FileReference. I'm wondering if I can access the data directly before uploading it to the server. I don't want to directly access the filesystem, the user will select it, as with FileReference.
fromvega
In flash, FileReference will only give you the filename, not the full path. Try it out.
dirkgently
OK but I was wondering if there was another solution similar to FileReference, not FileReference itself. But it seems there isn't, right?
fromvega
No. What you are trying to do *is* filesystem access -- a strict no-no.
dirkgently
Isn't FileReference a filesystem access to? I'll be able to get the user file anyway sending it to the server. I just want to work with it in memory before sending to the server.
fromvega
FileReference under AIR will give you the full path, in a browser app you will only get the file-name. So, your only choice is to upload to a server.
dirkgently
+1  A: 

I heard that in flash player 10, you actually can do this. I have not tested it myself, but I've seen a couple of demo videos. Here's something that google found that might be relevant.

http://dynamicflash.com/2008/07/flash-player-10-local-file-access/

Mikko Tapionlinna