# How to output flash variable in text.txt file

**URL:** <https://forum.kirupa.com/t/how-to-output-flash-variable-in-text-txt-file/4793>\
**Category:** flash\
**Created:** [August 20, 2002, 5:11pm UTC](https://forum.kirupa.com/t/how-to-output-flash-variable-in-text-txt-file/4793 "2002-08-20T17:11:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Igor](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@Igor](https://forum.kirupa.com/u/Igor)\
**Post date:** [August 20, 2002, 5:11pm UTC](https://forum.kirupa.com/t/how-to-output-flash-variable-in-text-txt-file/4793/1 "2002-08-20T17:11:22Z")

</div>

Hello everyone,  
I guess I still am I newbie about Flash and I am going to be thankful for any help I might get over this:  
I am traying to make some sort of a simple forum in flash. Problem occurs when I want to output contents of flash variable to file.  
For example: I have inputText = “hello world how are you” variable. How can I output this inputText to an text.txt file, so that in text.txt will bi written “hello world how are you”.

I am dealing with this problem for a long time by now and I just can’t find the answer. If it’s impossible for flash to write files please tell me, so I won’t dig in endless hole anymore. And if it’s impossible then I am asking for help how to send variables from flash to PHP.

Thank you for all your answers!!!

---

<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:** [August 20, 2002, 9:37pm UTC](https://forum.kirupa.com/t/how-to-output-flash-variable-in-text-txt-file/4793/2 "2002-08-20T21:37:51Z")

</div>

it’s impossible to write to the web server from flash (projector has some methods, but not swfs).

you can send variables to a php script with getURL or by using methods of the LoadVars object

```auto

getURL("write.php","_blank","POST");

```

---

<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:** [August 20, 2002, 9:47pm UTC](https://forum.kirupa.com/t/how-to-output-flash-variable-in-text-txt-file/4793/3 "2002-08-20T21:47:13Z")

</div>

you can save stuff to a txt file on the users drive with the localObject, check the tutorial on [kirupa.com](http://kirupa.com), it produces a simple text file with the sol extension…php is much better though…

check [www.phpforflash.com](http://www.phpforflash.com) for a good forum usign flash & php & mysql…or look at my own modified version 🙂 :  
[http://eyezberg.free.fr/forum/eyez.html](http://eyezberg.free.fr/forum/eyez.html)

---

<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:** [August 21, 2002, 6:32am UTC](https://forum.kirupa.com/t/how-to-output-flash-variable-in-text-txt-file/4793/4 "2002-08-21T06:32:30Z")

</div>

looks smoken Eyez
