Writing to text file using flash MX

Hello Everybody:

I am new to Flash Mx.

I am designing a form for PDA users. I save information entered by user saved in a text file when user is offline. My problem is flash MX doesn’t support this. I have tried some tool like jsave but its not working for me. Can any of u pls help.

THIS IS WHEN USER ID OFFLINE so no server script can used.
Secondly becoz security i want to store information in text file so it can be encrpted.

thanks for ur time .


You have 2 options for this.

You can use PHP (or I believe ASP) to write to the .txt file, this assumes your form is on a server since PHP and ASP are serverside languages.

Or you can use what are known as Shared Objects, they are sort of like cookies for Flash (but they don’t get cleared when someone clears their browser cache/cookies)


Hello Everybody:

Thanks for replying. but let me put i question probabaly first of all i want to save information when user is OFFLINE so server scripts can’t be used. Secondly due to some security reason i hve use text file that can be encrypted later. so it has to be in a text file. I hope now i have made myself clear.



If doing it offline, SharedObjects is your only method of choice (that I know of). Flash cannot write to a .txt file on it’s own.

I don’t know of a way to write to .txt files offline (or if there is even a way), sorry.

this might be worth giving it a shot


I tried that before ahmed, and it didn’t work for me :frowning:

Then I tried MMSave and that didn’t work either.


I’ve seen people who have done it… i haven’t tried it (yet)… were you running the script off a projector? :slight_smile:

Yep, I was running it both inside Flash and from a projector, and from the flash standalone player, it wouldn’t work for me either way.

Perhaps I was doing something wrong, I don’t feel bad about it because I was trying to do it with h88 and he couldn’t get it either :slight_smile:

I believe we found out MMSave() was just for the autoring enviroment, not sure though, it was too long ago.

blah… i wanted to make you feel bad, so i gave it a shot, and it didn’t work… now I’m feeling bad :frowning: