Thank you all for the help. Finally I understand where is problem. I
created App with runtime embedded. Then I used Advanced Installer
http://www.advancedinstaller.com/ and created installer package. By
default it installs my app to Program file folder. The App runs but nothing
write on the disk.
Have your app write files into the users document area instead of a
subfolder of the app which will be in the Program Files folder and under
restrictions.
Part of it might be solved by instructing advanced installer to enforce
the user to have administrative permissions.
best
Hans
On
Installer put app to c\programfiles\companyname\folder\folderwithapp
Installer do the job and copy files.The App when it placed in Program
files folder with subfolder with xml fil does not write it when I change
xml and save it in app. Everythng works if app placed not in Programfile
folder.
This is code in app
var appDirectory:File =
File.applicationDirectory;//File.applicationStorageDirectory
var fileString:String = appDirectory.nativePath;
var appFile:File = File.documentsDirectory;
var
setsFile:String=fileString+File.separator+data+File.separator+sets.xml
function
natalia Vikhtinskaya skriver:
This is code in app
var appDirectory:File =
File.applicationDirectory;//File.applicationStorageDirectory
var fileString:String = appDirectory.nativePath;
var appFile:File = File.documentsDirectory;
var
Ok, I understand. Where I must save my data?I have them in the same folder
as fla file.
2014-03-01 16:58 GMT+04:00 Henrik Andersson he...@henke37.cjb.net:
natalia Vikhtinskaya skriver:
This is code in app
var appDirectory:File =
In your code, change every File.applicationDirectory to File.
applicationStorageDirectory
On Sat, Mar 1, 2014 at 7:44 AM, natalia Vikhtinskaya
natavi.m...@gmail.comwrote:
Ok, I understand. Where I must save my data?I have them in the same folder
as fla file.
2014-03-01 16:58 GMT+04:00
Natalia,
In saveXML, try:
appFile = File.applicationStorageDirectory.resolvePath(data/sets.xml);
Several quibbles with the code, but this should work...
HTH,
--Dave
Ok, I understand. Where I must save my data?I have them in the same folder
as fla file.
2014-03-01 16:58
8 matches
Mail list logo