# Is there a way to dynamically name a text box?

**URL:** <https://forum.kirupa.com/t/is-there-a-way-to-dynamically-name-a-text-box/2922>\
**Category:** Uncategorized\
**Created:** [March 8, 2002, 1:22am UTC](https://forum.kirupa.com/t/is-there-a-way-to-dynamically-name-a-text-box/2922 "2002-03-08T01:22:20Z")\
**Posts on this page:** 8\
**Page:** 1

<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:** [March 8, 2002, 1:22am UTC](https://forum.kirupa.com/t/is-there-a-way-to-dynamically-name-a-text-box/2922/1 "2002-03-08T01:22:20Z")

</div>

I have figured out how to do my calendar, but when a certain date is clicked on I want to be able to display text. and I want to be able to make it so they can update a text file. This way the customer can enter the date and what they want it to say on an admin page and it will update the text file. the text file will look like this:\r\rdate1= some text for this date\rdate2= some text for this date\rdate3= some text for this date\r\rand so on.\r\rthen when they click on the day of the month it’ll display the specified line.\r\rbut for me to be able to do that I would need to be able to change the actual name of the text box i think. If anyone could help me with this it would be great. or if you know of a better way to do it i’m open for suggestions. Thanks.

---

<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:** [March 8, 2002, 1:27am UTC](https://forum.kirupa.com/t/is-there-a-way-to-dynamically-name-a-text-box/2922/2 "2002-03-08T01:27:57Z")

</div>

put it in a movie clip and dynamically name the movie clip.\r:) \rjeremy

---

<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:** [March 8, 2002, 1:34pm UTC](https://forum.kirupa.com/t/is-there-a-way-to-dynamically-name-a-text-box/2922/3 "2002-03-08T13:34:37Z")

</div>

how would i do that?

---

<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:** [March 8, 2002, 2:16pm UTC](https://forum.kirupa.com/t/is-there-a-way-to-dynamically-name-a-text-box/2922/4 "2002-03-08T14:16:03Z")

</div>

select the dynamic text box, and press F8. give it a name and press enter. Then on the stage, select the Movie clip that has the text box in it, and give it an instance name. Press Control+I and then put a name in the “name” box.

---

<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:** [March 8, 2002, 2:57pm UTC](https://forum.kirupa.com/t/is-there-a-way-to-dynamically-name-a-text-box/2922/5 "2002-03-08T14:57:37Z")

</div>

ok … I know how to do that but how do i get the text box name to change?

---

<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:** [March 8, 2002, 4:28pm UTC](https://forum.kirupa.com/t/is-there-a-way-to-dynamically-name-a-text-box/2922/6 "2002-03-08T16:28:18Z")

</div>

Well, you could attach that textbox movie clip, or duplicate it, as you wish. Then you can give it (ie the movie clip) the name you want.\rpom 0]

---

<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:** [March 8, 2002, 8:59pm UTC](https://forum.kirupa.com/t/is-there-a-way-to-dynamically-name-a-text-box/2922/7 "2002-03-08T20:59:53Z")

</div>

how will that change the name on the text box to be what i want it to be?

---

<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:** [March 8, 2002, 9:12pm UTC](https://forum.kirupa.com/t/is-there-a-way-to-dynamically-name-a-text-box/2922/8 "2002-03-08T21:12:34Z")

</div>

You don’t change the name of the textbox, that’s the whole trick !! It is named \*\* text\*\* all the time, but the objects you manipulate are different, \*\* \_root.date1, \_root.date2… **. So the path to get to the text will be \*\* \_root.date1.text** for instance.\r\rSee ? Same name of the textbox, only different movie clip, hence different name.\r\rpom 0]
