PDA

View Full Version : writing data to a text file



coolguy13
October 21st, 2002, 10:23 AM
How can i write data to a text file like user's score, date & last frame visited etc...
can the file to be written to an unix environment.
Please help!!!

pom
October 21st, 2002, 11:48 AM
Write where? Your server or the user's computer?

pom :cyclops:

coolguy13
October 21st, 2002, 09:32 PM
user's computer

reverendflash
October 21st, 2002, 09:56 PM
would you allow someone access to write files to your computer?

It's a security issue... not possible... :-\

Rev:elderly:

coolguy13
October 21st, 2002, 10:09 PM
I think this is a diff issue. If u dont write file to user's pc then how will u keep track of his record like scoring & all...
its a standard feature which is used in all WBT & CBTs

reverendflash
October 21st, 2002, 10:24 PM
Then I do not know, sorry.

Personally, I would not allow anything to run on my computer that needs permission to write to my hard drive (other than cookies, in a browser situation).

Unless I am totally off track. If so I appologize in advance.

I assume that the scores are set with a variable, and then reading that variable, but I am just assuming. :cool:

Rev:elderly:

sbeener
October 21st, 2002, 10:32 PM
high scores for multiple users are generally kept server side. if you want only the high score for the user in question, client side will work fine.

for client side writing, look into shared objects (http://www.macromedia.com/support/flash/ts/documents/local_so.htm)

pom
October 22nd, 2002, 07:29 AM
There's a tute on this site too. :)

coolguy13
October 22nd, 2002, 10:36 AM
thanks guys!!!
i will try....
I have to put user's score & last frame visited on his PC so that next time when he logs in he can start from that frame & able to see his last score.