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
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 au
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
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:
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 newFil
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 Vikhti
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 Haye
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.c
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: flashcod
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:
10 matches
Mail list logo