Re: [Flashcoders] Read and save xml file on disk

2014-02-10 Thread natalia Vikhtinskaya
Thank you for your answers. Unfortunately I don't know AIR or Zinc. I looked for a way to publish this application as swf file and then convert it to exe. I did that before with games. So no way to do that without AIR or Zinc? 2014-02-10 5:41 GMT+04:00 d...@eyebright.com: Natalia, You can

[Flashcoders] Read and save xml file on disk (natalia Vikhtinskaya)

2014-02-10 Thread Wenzler, Thomas
) -- Message: 1 Date: Sun, 9 Feb 2014 20:53:35 +0400 From: natalia Vikhtinskaya natavi.m...@gmail.com Subject: [Flashcoders] Read and save xml file on disk To: Flash Coders List flashcoders@chattyfig.figleaf.com Message-ID: can6sgrhpsyxpxajimdgqjwh1mfthxilycmtyivtfs+si-rv

Re: [Flashcoders] Read and save xml file on disk

2014-02-10 Thread David Benman
AIR is another publishing method available in Flash and because it creates an executable that removes many of the Flash player's security restrictions. Prior to Flash CC you could also create a Mac or Windows projector that would save a file. I think most methods still require user

Re: [Flashcoders] Read and save xml file on disk (natalia Vikhtinskaya)

2014-02-10 Thread natalia Vikhtinskaya
Date: Sun, 9 Feb 2014 20:53:35 +0400 From: natalia Vikhtinskaya natavi.m...@gmail.com Subject: [Flashcoders] Read and save xml file on disk To: Flash Coders List flashcoders@chattyfig.figleaf.com Message-ID: can6sgrhpsyxpxajimdgqjwh1mfthxilycmtyivtfs+si-rv...@mail.gmail.com Content

Re: [Flashcoders] Read and save xml file on disk

2014-02-10 Thread natalia Vikhtinskaya
Here how I try to save xml in the same folder where is my app import flash.filesystem.File; import flash.filesystem.FileStream; import flash.filesystem.FileMode; import flash.events.Event; //personnel. xml file .. // save to disk var appDirectory:File = File.applicationDirectory; var

RE: [Flashcoders] Read and save xml file on disk

2014-02-10 Thread Jim Hayes
Vikhtinskaya [natavi.m...@gmail.com] Sent: 10 February 2014 15:14 To: Flash Coders List Subject: Re: [Flashcoders] Read and save xml file on disk Here how I try to save xml in the same folder where is my app import flash.filesystem.File; import flash.filesystem.FileStream; import flash.filesystem.FileMode

RE: [Flashcoders] Read and save xml file on disk

2014-02-10 Thread Jim Hayes
Hayes [j...@primalpictures.com] Sent: 10 February 2014 15:26 To: Flash Coders List Subject: RE: [Flashcoders] Read and save xml file on disk you need to escape the \ like so \\ appFile = appFile.resolvePath(fileString+\\personnel.xml); trace(fileString+\\personnel.xml

Re: [Flashcoders] Read and save xml file on disk

2014-02-10 Thread natalia Vikhtinskaya
...@chattyfig.figleaf.com [ flashcoders-boun...@chattyfig.figleaf.com] on behalf of natalia Vikhtinskaya [natavi.m...@gmail.com] Sent: 10 February 2014 15:14 To: Flash Coders List Subject: Re: [Flashcoders] Read and save xml file on disk Here how I try to save xml in the same folder where is my app

Re: [Flashcoders] Read and save xml file on disk

2014-02-10 Thread Henrik Andersson
-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] on behalf of Jim Hayes [j...@primalpictures.com] Sent: 10 February 2014 15:26 To: Flash Coders List Subject: RE: [Flashcoders] Read and save xml file on disk you need to escape the \ like so \\ appFile

RE: [Flashcoders] Read and save xml file on disk

2014-02-10 Thread Jim Hayes
: Re: [Flashcoders] Read and save xml file on disk Just use File.separator, it will get you the correct one if you care. Jim Hayes skriver: Or use a / which I think works both on PC and the mac (which \ will not, that will only work on windows) Forgive me if I'm wrong on that one

[Flashcoders] Read and save xml file on disk

2014-02-09 Thread natalia Vikhtinskaya
Hi to all friends I have to create stand alone application that can read xml file then after editing save it on the disk. I need to do that by FlashCs6. I know that FileReference.load() : Loads data from a file selected by the user. FileReference.save() : Saves data to a file location selected by

Re: [Flashcoders] Read and save xml file on disk

2014-02-09 Thread John R. Sweeney Jr.
Hi, I presume your building an AIR app, so look into File.applicationStorageDirectory and resolvePath. You can read and write behind the scenes without user intervention. John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169

RE: [Flashcoders] Read and save xml file on disk

2014-02-09 Thread dave
Natalia, You can use the File (see e.g. applicationDirectory or resolvePath) and Filestream (open, readx, and writex) functions, but these are only available if you're using Air (other wrappers like Zinc have similar functionality). If it's an executable created by simply Publishing with Flash