Jeffry... Yep...I think I didn't make myself clear, my fault. The db file is in the same directory as my mxml application files. Now that I understand how the file settings work, I'll see about using the app:/ pathing instead. Appreciated!
-----Original Message----- From: Jeffry Houser [mailto:[EMAIL PROTECTED] Sent: Friday, February 15, 2008 3:58 PM To: Flex Subject: Re: Relative file paths for AIR app dev Andy Matthews wrote: > Okay... > > I actually found what seems to be a good way of dealing with this. > > var dbFileName:String = "Faces.db"; > dataFile:File = File.applicationDirectory.resolvePath(dbFileName); > > Returns the correct directory when the app is being run inside FB3, I thought you said that the database directory for development was a share network drive ("V:\something"). I took this to mean that your source code was local, but you had a database somewhere else. Was that assumption incorrect? Finding "Faces.db", makes me think that the database is in the application root directory. And if it is in the application root, then I'd expect that "app:/Faces.db" should also work. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:4969 Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
