# Save data in a SO under info from text field

**URL:** <https://forum.kirupa.com/t/save-data-in-a-so-under-info-from-text-field/203100>\
**Category:** Uncategorized\
**Created:** [October 7, 2006, 4:34pm UTC](https://forum.kirupa.com/t/save-data-in-a-so-under-info-from-text-field/203100 "2006-10-07T16:34:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RonH](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@RonH](https://forum.kirupa.com/u/RonH)\
**Post date:** [October 7, 2006, 4:34pm UTC](https://forum.kirupa.com/t/save-data-in-a-so-under-info-from-text-field/203100/1 "2006-10-07T16:34:49Z")

</div>

I am making a map editor and I want to be able to save map data under its own sub-directory in a Shared Object (SO).

I was thinking something like this:

```auto

mapSO = SharedObject.getLocal("mapEditor");
mapSO.data.mapName.text = "some info";

```

But that won’t work because Flash sees “mapName” & “text” as directories rather than what is in the actual mapName textfield. I was hoping that if someone typed “CoolMap” into the mapName text field, Flash would see it as:

```auto

mapSO.data.CoolMap = "some info";

```

But it doesn’t. Could someone help me with this, or offer a alternate solution.
