# Example of input text and store the data

**URL:** <https://forum.kirupa.com/t/example-of-input-text-and-store-the-data/113367>\
**Category:** Uncategorized\
**Created:** [June 17, 2004, 8:06am UTC](https://forum.kirupa.com/t/example-of-input-text-and-store-the-data/113367 "2004-06-17T08:06:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![karena](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@karena](https://forum.kirupa.com/u/karena)\
**Post date:** [June 17, 2004, 8:06am UTC](https://forum.kirupa.com/t/example-of-input-text-and-store-the-data/113367/1 "2004-06-17T08:06:34Z")

</div>

anybody can give me a example of a fla file where we can input our data and the data will be save using flash MX???  
Anyway you are kindly drop a message, your suggestion, explanation or example of code to me…:bored: thankx ya

---

<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:** [June 17, 2004, 8:30am UTC](https://forum.kirupa.com/t/example-of-input-text-and-store-the-data/113367/2 "2004-06-17T08:30:53Z")

</div>

Where do you want to save the data?

Locally, on the user’s pc? [size=1](use shared Objects)

[size=2]Or on your server, so that it can be loaded back to flash for others to see too? [size=1](server side script needed, php, asp, possibly also mySQL)

[size=2]And what kind of data are we talking about here anyway?

:rock:[/size]  
[/size][/size] [/size]

---

<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:** [June 17, 2004, 8:39am UTC](https://forum.kirupa.com/t/example-of-input-text-and-store-the-data/113367/3 "2004-06-17T08:39:19Z")

</div>

what i mean is in character…such as user name…  
yup…store in array…and view in flash file…(in flash)

---

<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:** [June 17, 2004, 8:59am UTC](https://forum.kirupa.com/t/example-of-input-text-and-store-the-data/113367/4 "2004-06-17T08:59:25Z")

</div>

I’m still quite not so sure what you want, but if you simply want to store the user’s name during this one time he/she views your .swf, you can use simply:

```auto

 var username = "Name Of the User";
 
 //and call it later on, for instance in a dynamic textfield named "name"
 
 name = username:
 
 //saving the name(s) to an array, could work something like this:
 usernames = new Array();
 usernames.push(username);
 

```

If you want to have the username stored also for later use, like a cookie, you could use shared object:

```auto

 myCookie = sharedobject.getLocal("cookieName" );
 cookieName.data.username = "Name Of the User";
 
 //and call it using simply
 cookieName.data.username

```

More about shared objects: [http://www.macromedia.com/support/flash/ts/documents/local\_so.htm](http://www.macromedia.com/support/flash/ts/documents/local_so.htm)

But if you want to see the saved information too, then you need to save the data on your server, with php, for example.

Hopefully helps… I have really no idea what you want to achieve here 🙂
