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
2009-03-14 05:58:46
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
2009-03-14 06:12:56
In flash, FileReference will only give you the filename, not the full path. Try it out.
dirkgently
2009-03-14 06:17:54
OK but I was wondering if there was another solution similar to FileReference, not FileReference itself. But it seems there isn't, right?
fromvega
2009-03-14 06:46:19
No. What you are trying to do *is* filesystem access -- a strict no-no.
dirkgently
2009-03-14 10:56:39
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
2009-03-16 00:04:33
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
2009-03-16 06:42:55
+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
2009-03-23 14:06:14