Writing Files to Disk from Flash

All:

I’m looking for a component that I can use to generate a file exported from a Flash movie. The logic works like this:

  1. Load some data
  2. User manipulates data in Flash movie
  3. Flash passes data via fscommand
  4. Some component/process gets this data and writes a .txt file to the disk locally.

The component at #4 is the one that stumps me. I’d like to find something that works for both Mac & Windows based systems. I guess I could look into Java but I’ve heard that Mac supports MS ActiveX - is that true? (I’m no kind of a Mac user.) Is there some other way of getting this to work?

Does anyone know anything that can make this work?

Thanks,

-L