Although there are no doubt exceptions, in general you want to avoid using full 
paths, and instead use the handles provided by the AIR environment. That way 
data will be put in the right place regardless of which operating system the 
application is installed on.

On the same machine, the handle will point to the same place in the filesystem 
for both debugging and release versions, except that the file for the 
application itself will be slightly different. The debug version will just be 
the name of the application whereas the release version will contain some sort 
of unique id (which I'm not sure how AIR generates although I would guess that 
it is related to the certificate used to sign the release version).

So for example, I have a hello world application. When I am in debug mode, I 
store my local data here:

C:\Documents and Settings\[my username]\Application Data\AIRHelloWorld

But the release version is here:

C:\Documents and Settings\[my username]\Application 
Data\AIRHelloWorld.1A63E0D1F441D84D82E5395BB5C59EA19782A4AD.1

See the air documentation on the available file system handles, and where they 
point.

 Sid Maskit
Partner 
CraftySpace
Better Websites for a Better World
http://www.CraftySpace.com
blog: http://smaskit.blogspot.com/



----- Original Message ----
From: slackware2142 <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, August 8, 2008 5:02:39 PM
Subject: [flexcoders] storage directory debugging AIR in FLEX3


Sorry, if this is a newbie question, but I google'd about it, and I 
didn't find any answer. While debugging AIR apps in FLEX3, what is the 
storage directory to write files (windows)?. Once the application is 
compiled and installed, the default directory is something like: 
C:\Documents and Settings\UserName\ Application Data\Test.XXX\ Local 
Store\ (windows xp). But what if I'm only debugging the app?

Thanks in advance!

    


      

Reply via email to