I want to generate a Class (.as) file and store it on the users desktop all from the AIR-App.
Someone can describe the best practice method?
Many thx and best regards…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Instead of trying to store anything on the desktop; do it on the user’s storage directory. You can get the userDirectory using the userDirectory attribute of the File class.
A second approach would be to store your file in the Application’s directory with the applicationStorageDirectory attribute.
Using either of these two approaches is what I would consider a best practice. Trying to store elsewhere is not something I’d recommend, as @eruciform stated there may be sandbox issues that prevent you from accessing those other directories.