# How to load the text into dynamic text field?

**URL:** <https://forum.kirupa.com/t/how-to-load-the-text-into-dynamic-text-field/306600>\
**Category:** flash\
**Created:** [March 18, 2010, 7:44am UTC](https://forum.kirupa.com/t/how-to-load-the-text-into-dynamic-text-field/306600 "2010-03-18T07:44:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![palanivelrajan](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@palanivelrajan](https://forum.kirupa.com/u/palanivelrajan)\
**Post date:** [March 18, 2010, 7:44am UTC](https://forum.kirupa.com/t/how-to-load-the-text-into-dynamic-text-field/306600/1 "2010-03-18T07:44:09Z")

</div>

I have a class and function and I have to load my text through class-\>function

here is my code

public function loadtext():void{

var text\_arry:Array=new Array(xmldata.child(0).name);

student\_name.text=String(text\_arry);

}

I called this function inside my timeline action window. but it is not working  
it said undefined… and something. please help me out from this problem
