Re: [Flashcoders] Air Windows installed app

2014-03-01 Thread David Cohn
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 GM

Re: [Flashcoders] Air Windows installed app

2014-03-01 Thread erik mattheis
In your code, change every File.applicationDirectory to File. applicationStorageDirectory On Sat, Mar 1, 2014 at 7:44 AM, natalia Vikhtinskaya wrote: > 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

Re: [Flashcoders] Air Windows installed app

2014-03-01 Thread natalia Vikhtinskaya
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 : > natalia Vikhtinskaya skriver: > > This is code in app > > var appDirectory:File = > > File.applicationDirectory;//File.applicationStorageDirectory > > var fileS

Re: [Flashcoders] Air Windows installed app

2014-03-01 Thread Henrik Andersson
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 > setsFile:String=fileString+File.separator+"data"+File

Re: [Flashcoders] Air Windows installed app

2014-03-01 Thread natalia Vikhtinskaya
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 initLoadXML(

Re: [Flashcoders] Air Windows installed app

2014-03-01 Thread natalia Vikhtinskaya
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. 201

Re: [Flashcoders] Air Windows installed app

2014-03-01 Thread Hans Wichman
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 3/1/2014

Re: [Flashcoders] Air Windows installed app

2014-03-01 Thread natalia Vikhtinskaya
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.

Re: [Flashcoders] Air Windows installed app

2014-02-24 Thread erik mattheis
I'm unsure the status of this or if someone has suggested any of the following: Are you saying the app doesn't work when using the installer but works as expected when copying the app folder somewhere outside of your clients "Program Files" folder? This will fail with default Windows settings as y

Re: [Flashcoders] Air Windows installed app

2014-02-24 Thread Peter Ginneberge
Easiest way is probably the "app with runtime embedded" option. And if that is similar to how it works in Flash Builder (Flex), you'll then need installer software to create a custom executable. As stated in the article: The resulting set of files is a complete AIR application, including a cap

Re: [Flashcoders] Air Windows installed app

2014-02-23 Thread natalia Vikhtinskaya
Not sure I understand how I can use this information in Flash Cs6. I created app in this program as Air 3.2 for Desktop. I have only two options - Windows Installer and App with runtime embedded. 2014-02-23 16:42 GMT+04:00 Peter Ginneberge : > You can apply for a license to (re)distribute the Ai

Re: [Flashcoders] Air Windows installed app

2014-02-23 Thread Peter Ginneberge
You can apply for a license to (re)distribute the Air runtime and then package it with your application. http://help.adobe.com/en_US/air/redist/WS485a42d56cd19641-70d979a8124ef20a34b-8000.html Or you can include a captive copy of the Air runtime with your application. http://www.adobe.com/devnet

Re: [Flashcoders] Air Windows installed app

2014-02-22 Thread natalia Vikhtinskaya
Thank you for help. I try to describe situation better. When I publish app as Windows installer the user can take my exe file and install app on his pc. On desktop he has icon after clicking on it he runs app. It plays well but function "write" nothing do. I use newFileStream.openAsync (appFile,

Re: [Flashcoders] Air Windows installed app

2014-02-20 Thread David Benman
Where are you saving the files to? You can't write to the application's folder when deployed but might work when you are testing on your machine. You need to be writing to a user folder, document folder, etc. anywhere but a subfolder of the Programs folder. On Feb 17, 2014, at 6:33 AM, natalia

Re: [Flashcoders] Air Windows installed app

2014-02-18 Thread dave
Does it read files, but not write? Do you have the 'WRITE_EXTERNAL_STORAGE' permission (in the AIR... settings) set? Can you add some tracing to see what directory it's trying to write to? I'd think the app wouldn't run at all if AIR isn't installedÂ… did you embed the AIR runtime? > --

Re: [Flashcoders] Air Windows installed app

2014-02-17 Thread Henrik Andersson
natalia Vikhtinskaya skriver: > Hi to all. > I solved all problems with xml editor in flash. I created AIR app that > loads and saves xml after editing. I created Windows installer app. It > works well on XP and Win 8. But when the user installs it on his pc (I > think he has no AIR program on it)

[Flashcoders] Air Windows installed app

2014-02-17 Thread natalia Vikhtinskaya
Hi to all. I solved all problems with xml editor in flash. I created AIR app that loads and saves xml after editing. I created Windows installer app. It works well on XP and Win 8. But when the user installs it on his pc (I think he has no AIR program on it) app plays but not saves files . What do