Forum Moderators: open

Message Too Old, No Replies

loadVars variables cached?

         

4string

5:54 pm on Jul 31, 2005 (gmt 0)

10+ Year Member



If I use loadVars to load from a text file, is the .txt file saved on the user's computer? Or, does it just read and load the variables into the movie?

I want to hide my text file from users. Can flash still access it from above the public html folder?

Richard_N

6:58 pm on Jul 31, 2005 (gmt 0)



no its not saved but it is cached within flash. Just give it some obscure name and its going to be pretty safe. Taking information across domains with flash is a little complex, also doubt it could access info above the web root.

If its crucial about the text files have you considered storing the info in a database instead?

4string

7:19 pm on Jul 31, 2005 (gmt 0)

10+ Year Member



Thanks, Richard.

Hmm. Maybe I can use .htaccess to only allow my flash file access to it.

I am putting things in a db, but I thought I could lessen the load on the db by loading the most common variables from a text file and only access when needed.

Thanks again.

Richard_N

8:09 pm on Jul 31, 2005 (gmt 0)



no probs, we use flash remoting for database connections and its really fast and quite light on resources.