PDA

View Full Version : Write text to file


aniWiz
05-29-2006, 05:42 PM
Can somebody please help me, I want to write text in txt file, and I found FLfile object. But, I want to know can I use it in swf files or it needs to be in windowSWF folder? I want to write text from any swf file!!! If not like that is there any way to write to file from swf?

Thanks!!!

Xeef
05-29-2006, 06:29 PM
hi and welcome to As.Org

I use it in swf files or it needs to be in windowSWF folder?

in will NOT work in an SWF :(

If not like that is there any way to write to file from swf?

NO ! :(

the only way is to send the content (text or what ever you wana write)
to a server and then send it back as a download (wich you then can save)

aniWiz
05-29-2006, 06:35 PM
Damn, thanks for quick answer!!!

androo_animator
06-08-2006, 04:49 PM
Er...not sure if this applies to this discussion, but I made a swf panel extension that writes to a file.

The code is like this:

MMExecute('var myFileURI = fl.configURI +"Commands/myFile.txt";myText="hello";FLfile.write(myFileURI, myText);');