# Couldn't load dynamic text into a movieclip

**URL:** <https://forum.kirupa.com/t/couldnt-load-dynamic-text-into-a-movieclip/301603>\
**Category:** Uncategorized\
**Created:** [December 11, 2009, 11:01pm UTC](https://forum.kirupa.com/t/couldnt-load-dynamic-text-into-a-movieclip/301603 "2009-12-11T23:01:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Evael](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/evael/32/2603_2.png) [@Evael](https://forum.kirupa.com/u/Evael)\
**Post date:** [December 11, 2009, 11:01pm UTC](https://forum.kirupa.com/t/couldnt-load-dynamic-text-into-a-movieclip/301603/1 "2009-12-11T23:01:00Z")

</div>

Trying to write a script that load dynamic text from a .txt file.

Everything works fine until i tried to put the dynamic text inside a movieclip. There is a error generated which i dont understand.

Really appreciated if someone can advice me on my mistake. Thanks.

Below is my code,

var myLoader:URLLoader = new URLLoader();  
myLoader.dataFormat=URLLoaderDataFormat.VARIABLES;  
myLoader.load(new URLRequest(“data.txt”));  
myLoader.addEventListener(Event.COMPLETE, loadData);

function loadData(e:Event){  
for (var i:uint=0; i\<myLoader.data.cant; i++) {  
this[“menuButton”+i+"\_mc"].buttonName\_txt.text=myLoader.data[“Coments”+i];  
}  
}

Below is the error generated,  
A term is undefined and has no properties.
