all groups > flash actionscript > january 2004 >
You're in the

flash actionscript

group:

Saving Text In Txt File


Saving Text In Txt File T_A_Z_Z
1/24/2004 4:11:17 PM
flash actionscript: I am using Flash 5. I am creating a simple game and i want to add a score list at the end of the program. So i need to save the score in a file like a txt file or a database. Is there any way to save text in a txt file and read this text back? I think i can save text in a database by using xml commands but i fing it a little bit complicated.

Re: Saving Text In Txt File kglad
1/24/2004 4:42:13 PM
you could use a shared object, if that's available in flash 5. if it's not available your other alternative is to use a third party appliction like flash jester. there is also a free app that lets you write to text files from flash that's referenced in this forum within the past month in a thread similar to this one.

Re: Saving Text In Txt File Carl Fink
1/26/2004 2:22:55 PM
Everything kglad writes is correct. It's worth mentioning that if your game is on a web server, the only ways you have to save information are:

1. Shared objects, as mentioned.
2. Cookies, written using JavaScript
3. Database link
4. XML link

Note further that 1 and 2 store the score on the user's computer, 3 and 4 on the web server.
--
Carl Fink
Please respond to the newsgroup only.

Re: Saving Text In Txt File dcort0
1/26/2004 2:33:03 PM
I am developing a training program for the USAF. I would like to print the scores on the tests in the program on a secure floppy disc that can be printed once only.

We will not have an internet connection so the client side must do all the work (war zones). I suspect that XML in some form or other will have to be used, but most of the stuff I've done is gathering info from XML not inputting into it.

Will the shared object be able to handle this.

Does any one have any ideas



David Cort
Senior CBT Programmer
882 TRG
Sheppard AFB
Wichita Falls, TX 76310
940 676 4064


Re: Saving Text In Txt File Carl Fink
1/26/2004 2:50:59 PM
[quoted text, click to view]

Interesting. I'm developing training programs for the US Army.

[quoted text, click to view]

No.

Is your training program web-based or run locally (e.g. off a CD-ROM)?
It it's web-based, it simply cannot write to the floppy in any practical
manner. If it's a projector (.exe file) you can do it using third-party
extensions, although I'm not clear on what a "secure floppy disc" is.
--
Carl Fink
Please Respond to the newsgroup only.

Re: Saving Text In Txt File T_A_Z_Z
1/29/2004 3:03:16 PM
Thanks guys! I have find the solution. For reading txt file i used the loadvariables command. For saving text in txt format i used a third party application as you told me. In macromedia web page i found a program "Flash Studio PRO Trial". This program converts the swf files into exe and gives you the opportunity to use some more commands supported by this program. If you download this program you will understand what i mean. It is really usefull and easy. dcort0, maybe you can solve your problem in this way. But I am not really sure if that s exactly what you need. I also can t understand what you mean by "secure floppy disc" .
Thanks again!

Re: Saving Text In Txt File dcort0
1/29/2004 4:53:38 PM
Sounds Great Tazz

Can you send me the code you wrote to do this?

Carl , What do you mean by "third party extensions"? We are putting the training on CD-Rom's. There are no internet connectikons in Afghanistan in some places.

David

Re: Saving Text In Txt File kglad
1/29/2004 5:11:05 PM
congrats! and you're welcome.

Re: Saving Text In Txt File Carl Fink
1/30/2004 2:00:01 PM
[quoted text, click to view]

Several companies, most obviously FlashJester (www.flashjester.com) have created
programs that add features to Flash, usually only in Projectors.
--
Carl Fink
Please respond to the newsgroup only.

AddThis Social Bookmark Button