# Loading dynamic Text

**URL:** https://forum.kirupa.com/t/loading-dynamic-text/237837
**Category:** flash
**Created:** [September 4, 2007, 3:20pm UTC](https://forum.kirupa.com/t/loading-dynamic-text/237837 "2007-09-04T15:20:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Merenra](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@Merenra](https://forum.kirupa.com/u/Merenra)
#### Post date: [September 4, 2007, 3:20pm UTC](https://forum.kirupa.com/t/loading-dynamic-text/237837/1 "2007-09-04T15:20:56Z")

</div>

Hi all,  
I have an MC-Menuitems and I would like that I load this MC 5 times and write a 5 different text in it- for 5 menu links and save it under 5 diferent mc\_names. The main idea ist after the text ist loaded I should use this menu items in another script, where all these menus mc are rotating (this works 🙂 So I need them only in the library-5 mc with names let’s say: name1,name2,name3 etc. and text1,text2 etc. respectively inside the MC. The problem is that the code under makes this only for 1 MC…I tried with For loop -but the MC are overlapping…  
I am not sure if I should load the text with CreateTextField or smth else…? I already tried with XML data, but there I managed just to load the text auf the stage, not inside the MC  
Here is my code

\_root.attachMovie(“menuitems”,“menuitems\_t”,3);  
\_root.menuitems\_t.\_x= -150;  
\_root.menuitems\_t.\_y= 150;  
\_root.menuitems\_t.menutitle.createTextField (“title”, 4, 0, 0, 40, 20);  
\_root.menuitems\_t.menutitle.title.autoSize = true;  
\_root.menuitems\_t.menutitle.title.text = “TestTest”;  
trace (\_root.menuitems\_t.menutitle.title.text);  
\_root.menuitems\_t.menutitle.title.border = true;

greetings and thanks a lot in advance(-:  
Merenra
