# Writing to text file using flash MX

**URL:** <https://forum.kirupa.com/t/writing-to-text-file-using-flash-mx/27879>\
**Category:** flash\
**Created:** [August 7, 2003, 1:56pm UTC](https://forum.kirupa.com/t/writing-to-text-file-using-flash-mx/27879 "2003-08-07T13:56:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![beginner](https://avatars.discourse-cdn.com/v4/letter/b/e495f1/32.png) [@beginner](https://forum.kirupa.com/u/beginner)\
**Post date:** [August 7, 2003, 1:56pm UTC](https://forum.kirupa.com/t/writing-to-text-file-using-flash-mx/27879/1 "2003-08-07T13:56:10Z")

</div>

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 .

beginner

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 7, 2003, 4:10pm UTC](https://forum.kirupa.com/t/writing-to-text-file-using-flash-mx/27879/2 "2003-08-07T16:10:21Z")

</div>

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)

[http://www.kirupa.com/developer/mx/sharedobjects.htm](http://www.kirupa.com/developer/mx/sharedobjects.htm)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 7, 2003, 5:07pm UTC](https://forum.kirupa.com/t/writing-to-text-file-using-flash-mx/27879/3 "2003-08-07T17:07:05Z")

</div>

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.

Thanks

Beginner

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 7, 2003, 9:54pm UTC](https://forum.kirupa.com/t/writing-to-text-file-using-flash-mx/27879/4 "2003-08-07T21:54:13Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 7, 2003, 9:59pm UTC](https://forum.kirupa.com/t/writing-to-text-file-using-flash-mx/27879/5 "2003-08-07T21:59:11Z")

</div>

this might be worth giving it a shot

[http://www.kirupaforum.com/forums/showthread.php?threadid=28543&highlight=fscommand+save](http://www.kirupaforum.com/forums/showthread.php?threadid=28543&highlight=fscommand+save)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 7, 2003, 10:01pm UTC](https://forum.kirupa.com/t/writing-to-text-file-using-flash-mx/27879/6 "2003-08-07T22:01:38Z")

</div>

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

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

[http://chattyfig.figleaf.com/flashcoders-wiki/index.php?MMSave](http://chattyfig.figleaf.com/flashcoders-wiki/index.php?MMSave)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 7, 2003, 10:03pm UTC](https://forum.kirupa.com/t/writing-to-text-file-using-flash-mx/27879/7 "2003-08-07T22:03:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 7, 2003, 10:14pm UTC](https://forum.kirupa.com/t/writing-to-text-file-using-flash-mx/27879/8 "2003-08-07T22:14:54Z")

</div>

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 🙂

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 7, 2003, 10:55pm UTC](https://forum.kirupa.com/t/writing-to-text-file-using-flash-mx/27879/9 "2003-08-07T22:55:27Z")

</div>

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