# FSCommand("save")

**URL:** https://forum.kirupa.com/t/fscommand-save/25626
**Category:** flash
**Created:** [July 15, 2003, 3:27am UTC](https://forum.kirupa.com/t/fscommand-save/25626 "2003-07-15T03:27:20Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![freakynuts](https://avatars.discourse-cdn.com/v4/letter/f/8e7dd6/32.png) [@freakynuts](https://forum.kirupa.com/u/freakynuts)
#### Post date: [July 15, 2003, 3:27am UTC](https://forum.kirupa.com/t/fscommand-save/25626/1 "2003-07-15T03:27:20Z")

</div>

Hi, I want to save variables to txt file. I have found that this can be done by using the FSCommand save (undocumented command). The problem is im not sure how to do it. Can someone give me a quick tutorial on how to setup a variable then export it to txt.

thanks

---

<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: [July 15, 2003, 3:33am UTC](https://forum.kirupa.com/t/fscommand-save/25626/2 "2003-07-15T03:33:59Z")

</div>

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

---

<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: [July 15, 2003, 3:44am UTC](https://forum.kirupa.com/t/fscommand-save/25626/3 "2003-07-15T03:44:41Z")

</div>

Thanks for that but im no closer to understanding how to do it

---

<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: [July 15, 2003, 3:46am UTC](https://forum.kirupa.com/t/fscommand-save/25626/4 "2003-07-15T03:46:51Z")

</div>

what exactly is confusing you?

---

<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: [July 15, 2003, 3:50am UTC](https://forum.kirupa.com/t/fscommand-save/25626/5 "2003-07-15T03:50:56Z")

</div>

How do i tell it which variable to save.

ie: say i have input box that i want to save the text from. How do i tell it to save that entered text

am i making sense?

---

<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: [July 15, 2003, 3:54am UTC](https://forum.kirupa.com/t/fscommand-save/25626/6 "2003-07-15T03:54:13Z")

</div>

ah, i don’t think you can actually do that with FSCommandSave, since it saves all the variables in a certain timeline to textfile. To achieve what you’re trying to do you will need to use a server-side script of some sort (and that would write files only on the server, not the client’s machine)…

If it doesn’t have to be an actual textfile, you can use flash’s SharedObjects 🙂

---

<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: [July 15, 2003, 3:55am UTC](https://forum.kirupa.com/t/fscommand-save/25626/7 "2003-07-15T03:55:29Z")

</div>

\*\*\*\*:…Thanks anyway

---

<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: [July 15, 2003, 3:58am UTC](https://forum.kirupa.com/t/fscommand-save/25626/8 "2003-07-15T03:58:01Z")

</div>

here’s tut on SharedObjects anyways…

[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: [July 15, 2003, 4:32am UTC](https://forum.kirupa.com/t/fscommand-save/25626/9 "2003-07-15T04:32:05Z")

</div>

actually ive just worked it out. It can be done but only in Flash 5 (im using MX). Went to another PC and tried it with Flash 5 and it works. It imports everything i type into the input box.

:ub: :ub: :ub:
