RE: [Flashcoders] Read and save xml file on disk
That I never knew! Even after years of using AIR. From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] on behalf of Henrik Andersson [he...@henke37.cjb.net] Sent: 10 February 2014 16:20 To: Flash Coders List Subject: 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. > > From: flashcoders-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 = appFile.resolvePath(fileString+"\\personnel.xml"); > trace(fileString+"\\personnel.xml") --- Detta epostmeddelande innehåller inget virus eller annan skadlig kod för avast! antivirus är aktivt. http://www.avast.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
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. > > From: flashcoders-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 = appFile.resolvePath(fileString+"\\personnel.xml"); > trace(fileString+"\\personnel.xml") --- Detta epostmeddelande innehåller inget virus eller annan skadlig kod för avast! antivirus är aktivt. http://www.avast.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Read and save xml file on disk
Thank you! "\\' works. 2014-02-10 19:26 GMT+04:00 Jim Hayes : > you need to escape the \ like so "\\" > > appFile = appFile.resolvePath(fileString+"\\personnel.xml"); > trace(fileString+"\\personnel.xml") > > From: flashcoders-boun...@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 > > 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 newFileStream:FileStream = new FileStream(); > var fileString:String = appDirectory.nativePath; > var appFile:File = File.documentsDirectory; > appFile = appFile.resolvePath(fileString+"\personnel.xml"); > trace(fileString+"\personnel.xml") > it gives path myfolderpersonnel.xml instead of myfolder\personal.xml > > How to solve this problem? > > 2014-02-10 15:51 GMT+04:00 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 interaction, but its usually not > > that hard to scare up some sort of user interaction to trigger the > saving. > > The user doesn't necessarily need to choose the save location each time, > > just the save process needs to be triggered by a user interaction. > > > > On Feb 10, 2014, at 5:55 AM, natalia Vikhtinskaya > > > wrote: > > > > > 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 : > > > > > >> Natalia, > > >> > > >> You can use the File (see e.g. "applicationDirectory" or > "resolvePath") > > >> and Filestream (open, read, and write) 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 Player as the target, I think security issues prevent you from > > doing > > >> this. > > >> > > >> HTH, > > >> --Dave > > >> > > >>> > -- > > >>> From: 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 the > > >> user. > > >>> Is it possible to save and read without the user? > > >>> What is the better way for this task? > > >>> Do you know any good tutorials with examples on this subject? This > task > > >> it > > >>> new for me and I want to read about that more. > > >>> > > >>> Thank you in advance. > > >> > > >> > > >> ___ > > >> Flashcoders mailing list > > >> Flashcoders@chattyfig.figleaf.com > > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > >> > > > ___ > > > Flashcoders mailing list > > > Flashcoders@chattyfig.figleaf.com > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > David Benman > > Interactive Developer > > d...@dbenman.com > > http://www.dbenman.com > > (315) 637-8487 (home office) > > > > > > > > > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Read and save xml file on disk
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. From: flashcoders-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 = appFile.resolvePath(fileString+"\\personnel.xml"); trace(fileString+"\\personnel.xml") From: flashcoders-boun...@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 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 newFileStream:FileStream = new FileStream(); var fileString:String = appDirectory.nativePath; var appFile:File = File.documentsDirectory; appFile = appFile.resolvePath(fileString+"\personnel.xml"); trace(fileString+"\personnel.xml") it gives path myfolderpersonnel.xml instead of myfolder\personal.xml How to solve this problem? 2014-02-10 15:51 GMT+04:00 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 interaction, but its usually not > that hard to scare up some sort of user interaction to trigger the saving. > The user doesn't necessarily need to choose the save location each time, > just the save process needs to be triggered by a user interaction. > > On Feb 10, 2014, at 5:55 AM, natalia Vikhtinskaya > wrote: > > > 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 : > > > >> Natalia, > >> > >> You can use the File (see e.g. "applicationDirectory" or "resolvePath") > >> and Filestream (open, read, and write) 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 Player as the target, I think security issues prevent you from > doing > >> this. > >> > >> HTH, > >> --Dave > >> > >>> -- > >>> From: 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 the > >> user. > >>> Is it possible to save and read without the user? > >>> What is the better way for this task? > >>> Do you know any good tutorials with examples on this subject? This task > >> it > >>> new for me and I want to read about that more. > >>> > >>> Thank you in advance. > >> > >> > >> ___ > >> Flashcoders mailing list > >> Flashcoders@chattyfig.figleaf.com > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >> > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > David Benman > Interactive Developer > d...@dbenman.com > http://www.dbenman.com > (315) 637-8487 (home office) > > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
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") From: flashcoders-boun...@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 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 newFileStream:FileStream = new FileStream(); var fileString:String = appDirectory.nativePath; var appFile:File = File.documentsDirectory; appFile = appFile.resolvePath(fileString+"\personnel.xml"); trace(fileString+"\personnel.xml") it gives path myfolderpersonnel.xml instead of myfolder\personal.xml How to solve this problem? 2014-02-10 15:51 GMT+04:00 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 interaction, but its usually not > that hard to scare up some sort of user interaction to trigger the saving. > The user doesn't necessarily need to choose the save location each time, > just the save process needs to be triggered by a user interaction. > > On Feb 10, 2014, at 5:55 AM, natalia Vikhtinskaya > wrote: > > > 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 : > > > >> Natalia, > >> > >> You can use the File (see e.g. "applicationDirectory" or "resolvePath") > >> and Filestream (open, read, and write) 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 Player as the target, I think security issues prevent you from > doing > >> this. > >> > >> HTH, > >> --Dave > >> > >>> -- > >>> From: 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 the > >> user. > >>> Is it possible to save and read without the user? > >>> What is the better way for this task? > >>> Do you know any good tutorials with examples on this subject? This task > >> it > >>> new for me and I want to read about that more. > >>> > >>> Thank you in advance. > >> > >> > >> ___ > >> Flashcoders mailing list > >> Flashcoders@chattyfig.figleaf.com > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >> > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > David Benman > Interactive Developer > d...@dbenman.com > http://www.dbenman.com > (315) 637-8487 (home office) > > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
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; import flash.events.Event; //personnel. xml file .. // save to disk var appDirectory:File = File.applicationDirectory; var newFileStream:FileStream = new FileStream(); var fileString:String = appDirectory.nativePath; var appFile:File = File.documentsDirectory; appFile = appFile.resolvePath(fileString+"\personnel.xml"); trace(fileString+"\personnel.xml") it gives path myfolderpersonnel.xml instead of myfolder\personal.xml How to solve this problem? 2014-02-10 15:51 GMT+04:00 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 interaction, but its usually not > that hard to scare up some sort of user interaction to trigger the saving. > The user doesn't necessarily need to choose the save location each time, > just the save process needs to be triggered by a user interaction. > > On Feb 10, 2014, at 5:55 AM, natalia Vikhtinskaya > wrote: > > > 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 : > > > >> Natalia, > >> > >> You can use the File (see e.g. "applicationDirectory" or "resolvePath") > >> and Filestream (open, read, and write) 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 Player as the target, I think security issues prevent you from > doing > >> this. > >> > >> HTH, > >> --Dave > >> > >>> -- > >>> From: 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 the > >> user. > >>> Is it possible to save and read without the user? > >>> What is the better way for this task? > >>> Do you know any good tutorials with examples on this subject? This task > >> it > >>> new for me and I want to read about that more. > >>> > >>> Thank you in advance. > >> > >> > >> ___ > >> Flashcoders mailing list > >> Flashcoders@chattyfig.figleaf.com > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >> > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > David Benman > Interactive Developer > d...@dbenman.com > http://www.dbenman.com > (315) 637-8487 (home office) > > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Read and save xml file on disk (natalia Vikhtinskaya)
If I understand all advices correctly I created small test Flash CS6 and published as AIR app // xml personnel file var personnel:XML = CT Marketing NY Sales CT Engineering // new node appended personnel.appendChild( MA Sales ); var prefsFile:File = File.applicationStorageDirectory; prefsFile = prefsFile.resolvePath("personnel.xml"); var outputStringXML:String = personnel.toXMLString(); stream = new FileStream(); stream.open(prefsFile, FileMode.WRITE); stream.writeUTFBytes(outputStringXML); line var prefsFile:File = File.applicationStorageDirectory; gives mistake Type was not found or was not a compile-time constant: File. What is wrong here? 2014-02-10 15:03 GMT+04:00 Wenzler, Thomas : > You might look at mProjector or zinc or something in that lane. AFAIK > these have the additional classes to let you write txt or xml to the > filesystem without further permission by the user. But this only works as > executable Projector, not via Browser. > > Best regards, Thomas > > > Mit besten Grüßen aus Köln > stodt mediendesign GmbH > > i. A. Thomas Wenzler-Horn > > Multimedia-Entwickler > > > stodtmediendesign GmbH > Unter Krahnenbäumen 9 > 50668 Köln > > Telefon: +49 (0)221 222 514 43 > Telefax: +49 (0)221 222 514 50 > wenz...@stodt.de > > www.stodt.de > > > > Geschäftssitz: Köln - Amtsgericht Köln - HRB 32404, > > > Geschäftsführer: Carsten Stodt > > Papier sparen für unsere Umwelt. Bitte drucken Sie diese E-Mail nicht > unnötig aus! > > Saving paper means protecting our environment. Please don´t print this > e-mail unless you really need to. > > > -Ursprüngliche Nachricht- > Von: flashcoders-boun...@chattyfig.figleaf.com [mailto: > flashcoders-boun...@chattyfig.figleaf.com] Im Auftrag von > flashcoders-requ...@chattyfig.figleaf.com > Gesendet: Sonntag, 9. Februar 2014 18:00 > An: flashcoders@chattyfig.figleaf.com > Betreff: Flashcoders Digest, Vol 76, Issue 3 > > Send Flashcoders mailing list submissions to > flashcoders@chattyfig.figleaf.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > or, via email, send a message with subject or body 'help' to > flashcoders-requ...@chattyfig.figleaf.com > > You can reach the person managing the list at > flashcoders-ow...@chattyfig.figleaf.com > > When replying, please edit your Subject line so it is more specific than > "Re: Contents of Flashcoders digest..." > > > Today's Topics: > >1. Read and save xml file on disk (natalia Vikhtinskaya) > > > -- > > Message: 1 > Date: Sun, 9 Feb 2014 20:53:35 +0400 > From: natalia Vikhtinskaya > Subject: [Flashcoders] Read and save xml file on disk > To: Flash Coders List > Message-ID: > < > can6sgrhpsyxpxajimdgqjwh1mfthxilycmtyivtfs+si-rv...@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > 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 the user. > Is it possible to save and read without the user? > What is the better way for this task? > Do you know any good tutorials with examples on this subject? This task it > new for me and I want to read about that more. > > Thank you in advance. > > > -- > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > End of Flashcoders Digest, Vol 76, Issue 3 > ** > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Read and save xml file on disk
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 interaction, but its usually not that hard to scare up some sort of user interaction to trigger the saving. The user doesn't necessarily need to choose the save location each time, just the save process needs to be triggered by a user interaction. On Feb 10, 2014, at 5:55 AM, natalia Vikhtinskaya wrote: > 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 : > >> Natalia, >> >> You can use the File (see e.g. "applicationDirectory" or "resolvePath") >> and Filestream (open, read, and write) 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 Player as the target, I think security issues prevent you from doing >> this. >> >> HTH, >> --Dave >> >>> -- >>> From: 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 the >> user. >>> Is it possible to save and read without the user? >>> What is the better way for this task? >>> Do you know any good tutorials with examples on this subject? This task >> it >>> new for me and I want to read about that more. >>> >>> Thank you in advance. >> >> >> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders David Benman Interactive Developer d...@dbenman.com http://www.dbenman.com (315) 637-8487 (home office) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Read and save xml file on disk (natalia Vikhtinskaya)
You might look at mProjector or zinc or something in that lane. AFAIK these have the additional classes to let you write txt or xml to the filesystem without further permission by the user. But this only works as executable Projector, not via Browser. Best regards, Thomas Mit besten Grüßen aus Köln stodt mediendesign GmbH i. A. Thomas Wenzler-Horn Multimedia-Entwickler stodtmediendesign GmbH Unter Krahnenbäumen 9 50668 Köln Telefon: +49 (0)221 222 514 43 Telefax: +49 (0)221 222 514 50 wenz...@stodt.de www.stodt.de Geschäftssitz: Köln - Amtsgericht Köln - HRB 32404, Geschäftsführer: Carsten Stodt Papier sparen für unsere Umwelt. Bitte drucken Sie diese E-Mail nicht unnötig aus! Saving paper means protecting our environment. Please don´t print this e-mail unless you really need to. -Ursprüngliche Nachricht- Von: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] Im Auftrag von flashcoders-requ...@chattyfig.figleaf.com Gesendet: Sonntag, 9. Februar 2014 18:00 An: flashcoders@chattyfig.figleaf.com Betreff: Flashcoders Digest, Vol 76, Issue 3 Send Flashcoders mailing list submissions to flashcoders@chattyfig.figleaf.com To subscribe or unsubscribe via the World Wide Web, visit http://chattyfig.figleaf.com/mailman/listinfo/flashcoders or, via email, send a message with subject or body 'help' to flashcoders-requ...@chattyfig.figleaf.com You can reach the person managing the list at flashcoders-ow...@chattyfig.figleaf.com When replying, please edit your Subject line so it is more specific than "Re: Contents of Flashcoders digest..." Today's Topics: 1. Read and save xml file on disk (natalia Vikhtinskaya) -- Message: 1 Date: Sun, 9 Feb 2014 20:53:35 +0400 From: natalia Vikhtinskaya Subject: [Flashcoders] Read and save xml file on disk To: Flash Coders List Message-ID: Content-Type: text/plain; charset=ISO-8859-1 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 the user. Is it possible to save and read without the user? What is the better way for this task? Do you know any good tutorials with examples on this subject? This task it new for me and I want to read about that more. Thank you in advance. -- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders End of Flashcoders Digest, Vol 76, Issue 3 ** ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Read and save xml file on disk
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 : > Natalia, > > You can use the File (see e.g. "applicationDirectory" or "resolvePath") > and Filestream (open, read, and write) 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 Player as the target, I think security issues prevent you from doing > this. > > HTH, > --Dave > > > -- > > From: 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 the > user. > > Is it possible to save and read without the user? > > What is the better way for this task? > > Do you know any good tutorials with examples on this subject? This task > it > > new for me and I want to read about that more. > > > > Thank you in advance. > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders