[FMX] To save a file locally

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

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

pom :cowboy:

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?

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

You can save anything into a S.O. you want: arrays, strings, numbers, dates…up to you.

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

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:

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.