# \[FMX\] To save a file locally

**URL:** <https://forum.kirupa.com/t/fmx-to-save-a-file-locally/11671>\
**Category:** Uncategorized\
**Created:** [January 20, 2003, 10:31pm UTC](https://forum.kirupa.com/t/fmx-to-save-a-file-locally/11671 "2003-01-20T22:31:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![babbaladoobala](https://avatars.discourse-cdn.com/v4/letter/b/e47c2d/32.png) [@babbaladoobala](https://forum.kirupa.com/u/babbaladoobala)\
**Post date:** [January 20, 2003, 10:31pm UTC](https://forum.kirupa.com/t/fmx-to-save-a-file-locally/11671/1 "2003-01-20T22:31:35Z")

</div>

Hi,

I am populating a listbox with an array. When an item is selected in the listbox, I am attempting to link to that file and save it locally when I click a save button.

I have fished around looking for ways to do this. I guess I’m looking for any info. I know the FSCommand has some functions that may help, but they don’t seem to be supported completely.

If anyone has any ideas, I would be greatly appreciative.

thank you,

Sam

---

<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:** [January 20, 2003, 11:44pm UTC](https://forum.kirupa.com/t/fmx-to-save-a-file-locally/11671/2 "2003-01-20T23:44:48Z")

</div>

Why don’t you try shared objects? There’s a tute somewhere…

pom :cowboy:

---

<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:** [January 21, 2003, 2:02am UTC](https://forum.kirupa.com/t/fmx-to-save-a-file-locally/11671/3 "2003-01-21T02:02:55Z")

</div>

I’m not too familiar with shared objects (yet ;), but this seems to be the right area to look in.

With SharedObject.flush, flash states that the command “immediately writes a locally persistent shared object to a local file.”

Would, say an ID tag associated with an .mp3 on the server constitute as locally persistent shared object? Or am I way off?

---

<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:** [January 21, 2003, 2:09am UTC](https://forum.kirupa.com/t/fmx-to-save-a-file-locally/11671/4 "2003-01-21T02:09:18Z")

</div>

Can you rephrase your question? I’m just a poor Frenchman… :hangover:

---

<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:** [January 21, 2003, 8:01am UTC](https://forum.kirupa.com/t/fmx-to-save-a-file-locally/11671/5 "2003-01-21T08:01:25Z")

</div>

You can save anything into a S.O. you want: arrays, strings, numbers, dates…up to 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:** [January 21, 2003, 5:46pm UTC](https://forum.kirupa.com/t/fmx-to-save-a-file-locally/11671/6 "2003-01-21T17:46:08Z")

</div>

My hope is that I can actually save and .mp3 locally: click save - browse the local drive - hit ok - and wham!

Is this possibly using S.O’s? Or is there a better direction?

I appreciate your feedback/time.

Thanks,

Sam

---

<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:** [January 21, 2003, 6:24pm UTC](https://forum.kirupa.com/t/fmx-to-save-a-file-locally/11671/7 "2003-01-21T18:24:19Z")

</div>

No, you can’t do that. All you have to do is getURL your file, and Flash will automatically ask you if you want to save the file. I guess. :crazy:

---

<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:** [January 21, 2003, 9:53pm UTC](https://forum.kirupa.com/t/fmx-to-save-a-file-locally/11671/8 "2003-01-21T21:53:40Z")

</div>

Depends on what you got on your system, some download managers even intercept flash’s loadmovie calls for mp3 when in fact you wanna play them in flash (suxs!)  
S.O. will save textual data.
