Could you use app:/ ?

Fromt he docs:

app:/
An alias to the application directory. Files accessed from this path  
will be assigned the application sandbox and have the full privileges  
granted by the runtime.


Regards,

Stefan





On 15 Feb 2008, at 14:00, Andy Matthews wrote:

> I've got an Flex/AIR app which contains a SQLite db and some photos  
> which will be included in the install package.
>
> /src
>    faces.db
>    /assets
>        andymatthews.png
>        ericcobb.png
>
> I need to open the db file locally rather than what I'm currently  
> using which is:
>
> var db:SQLConnection = new SQLConnection();
> var file:File = new File("//Ds-fs1/Shared/Faces/faces.db");
> db.open(file);
>
> Obviously that file path won't exist on the end user's machine.
>
> How might I go about referencing it this file so that it will work  
> both in development, and installed?
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:4954
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