This content has been marked as final. Show 4 replies
You cannot get the path to a file; it is considered a high security threat. You can imagine that someone could write a malicious SWF which prompts for a file and then, having the full-path to the file, proceeds to erase it, mangle, it, etc.
If you need to work with local files using Flash technology, check out Adobe Apollo on the Adobe Labs site.
okay, Thanks... But is there a work around using which I can open a particular file. The thing is that I want to store images in Base64 format.
There is no way the Flash Player will open a local file for you. Keep in mind that the Flash Player was designed and developed for web application - those apps which are served remotely with the intention of keeping the data on a server. If you wanted to upload your image onto a server, that's fine.
If you want to store files locally, please look into Adobe Apollo. You'll still get to use Flex and Flex Builder. The result will be a desktop application with an easy-to-use, operating system independent, way to read and write local files.