I want to have a xml file for my configuration and so i have to load it from the same directory the swf file lies in and save it afterwards. I saw articles about filestreams in flex but my compiler didn't allow me to use the filestream. I use the open source flex sdk.
anyone got an idea?
thanks in advance
Sebastian
Best Answer
FileStream
is available in Adobe AIR, not in Flex. You can't use files in Flex directly - for security reasons, you don't have access to local files (where the Flash Player is running). You'll need to fetch the data using an HTTP request.Update: You can read the configuration using an HTTP request - if you want to save information back into the configuration, you'll have to send an HTTP POST with your changes, and have server-side logic update the configuration.