Thank you both for your tips. I think I will just embed the SQL statements into the application and not go through the hassles that you both speak of. I think this will be cleaner from a deployment perspective.
Jim --- In flexcoders@yahoogroups.com, "Jim Hayes" <j...@...> wrote: > > If you're using flexbuilder to package, then probably the easiest way is > to check "copy non embedded files to output folder" in project | > properties | flex compiler, > But I find this to be a bit messy at times. > If not, then you can kind of cheat. When you publish your .air file, it > will offer you the choice of files to include in the archive. > If you click "back" at this point then you have the opportunity (outside > of flexbuilder) to copy any files you need to the "bin-release" folder > that gets temporarily created as part of the publishing operation. Back > in flexbuilder, click "next" again and you'll be back in the stage where > you can specify files to include, but now you'll have the opportunity to > select the files you just copied to bin-release. > > This, however, gets old pretty quickly! > > I now have an ant build script that packages everything up for me, > without having to think / remember to copy certain files. > > I'm not sure if my script is generic enough or even clear enough to be > much help to anyone though, to be honest I found it quite hard work to > get it all working from a nil level of ant knowledge/experience. > If there's anything specific you need to ask on that, however, then I'll > do my best (Though I'm sure many people on the list are better qualified > than myself in that respect). > > In regard of copying it over, you'll need to check if the file is there > when the app starts, and copy it if not. There's not any scripting in > the Air installer itself. > > -----Original Message----- > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of Jim Boone > Sent: 15 December 2008 13:36 > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: How do I include a file in the AIR app-storage > directory at install time? > > I read what you say, but I don't know how to do that. How do I include > it as part of the install? How do I copy it over? Does the AIR install > include some sort of scripting? > > Also, on doing more research, I have found that it is not wise to > include files that I am talking about in app-storage and that perhaps > the user directory is more appropriate. > > http://blogs.adobe.com/simplicity/2008/06/dont_write_to_app_dir.html > <http://blogs.adobe.com/simplicity/2008/06/dont_write_to_app_dir.html> >