Andy Matthews wrote: > Okay ... > > That doesn't appear to be working, but I think it's my fault for not > explaining myself correctly. > > All of my dev files are located here (network drive): > > V:\wwwroot\FlexProjects\Faces\src > Faces.db > Faces.mxml > etc. > > But the app will probably get installed here: > C:\Program Files\Faces > > Is there some way for Flex to know that while I'm developing, when I say > Faces.db I mean > V:\wwwroot\FlexProjects\Faces\src\Faces.db > > but when the app is installed and running on a user's machine I mean: > C:\Program Files\Faces\Faces.db
I strongly recommend creating a development environment similar to what your production environment is going to be like. It'll make your life easier in the long run. That said, you could store the database location in some form of config file, perhaps an XML file. Then use different Config file for "production vs development". Of course, you'll have to remember to change your config file when exporting a release version. Doable, but tedious. I believe you can also set a version number in the app-config, and then do a compare "if Dev go here for file, else go here". Of course, once again, before exporting the release version you'd have to change the file. Doable, but tedious. > Lastly, is that even where the db would get installed on the user's machine, > or would it get installed somewhere else? If it is a part of your AIR installer, it will get installed into the application's install directory. I think you can make directory suggestions (via the -app.xml config file), but the user can really set that path to anything when they install it. -- Jeffry Houser Flex, ColdFusion, AIR AIM: Reboog711 | Phone: 1-203-379-0773 -- Adobe Community Expert <http://www.adobe.com/communities/experts/members/JeffryHouser.html> My Company: <http://www.dot-com-it.com> My Podcast: <http://www.theflexshow.com> My Blog: <http://www.jeffryhouser.com> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4961 Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
