This content has been marked as final. Show 5 replies
well i don't know why would you want to access local files but you can do that only using a back end script using an httpservice that's the only way flex can't do that directly due to sandbox security.
You might consider using AIR, it has support for local file system access.
For performance reasons, we want to implement some sort of a local cache storing big media files (images, videos) so Flex app won't have to request them from the server every time, and use this local cache instead.
The fact Flex does not support this does surprise/irritate me - it is a huge limitation. Is there really no way to "sign" this Flex code and allow it to access arbitrary files on the local computer, the same way a say signed Java applet does?
Ultimately, we'll have no choice but to switch to using AIR, but AIR is still in beta now.
You can install your application into a trusted sandbox on the users filesystem, but that negates a lot of the value of a web-delivered app.
You can access the file system and other local assets through an applet or activex component. Communicate with the applet via ExternalInterface.
But AIR is really the best solution.
It is impossible to directly access a filesystem through flex. You may only upload or download files to or from server. But yes, it is possible to do it by using java applet through ajax bridge. But in this case, you needn't to use Flex at all:) Java applet should be enough. This could be help you: http://www.kellyjo.com/blog/index.cfm/2007/2/20/Accessing-the-Local-File-System-with-Flex