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

Lastly, is that even where the db would get installed on the user's machine,
or would it get installed somewhere else?

Thanks for being patient with me. I know what I want to do, I just don't
know how to get it done.


andy

-----Original Message-----
From: Jeffry Houser [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 15, 2008 10:04 AM
To: Flex
Subject: Re: Relative file paths for AIR app dev

  You don't define it anywhere.  You just use it in a string.  The original
code on this thread, would be re-written like this:

  var db:SQLConnection = new SQLConnection();
  var file:File = new File("app:/Ds-fs1/Shared/Faces/faces.db");
  db.open(file);


  AIR sees it when accessing a file and just knows where to look.

  Kind of like the web browser knows the difference between "http://";,
"ftp://:, and "file://".

  Air knows the difference between "C:\", "app:/", and "app-storage:/".

  Does that answer the question?



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:4960
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to