# Dynamically create text inside a movieclip

**URL:** <https://forum.kirupa.com/t/dynamically-create-text-inside-a-movieclip/304227>\
**Category:** flash\
**Created:** [February 3, 2010, 8:22pm UTC](https://forum.kirupa.com/t/dynamically-create-text-inside-a-movieclip/304227 "2010-02-03T20:22:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![waverider303](https://avatars.discourse-cdn.com/v4/letter/w/ac91a4/32.png) [@waverider303](https://forum.kirupa.com/u/waverider303)\
**Post date:** [February 3, 2010, 8:22pm UTC](https://forum.kirupa.com/t/dynamically-create-text-inside-a-movieclip/304227/1 "2010-02-03T20:22:42Z")

</div>

I want to create a movieclip so that that I can create text inside of it and make it clickable. I want to do this all dynamically since I am using ZendAMF to pull in database information to put in the text box. So far I have this:

```auto

function createNames():void {
	nameCont = new MovieClip();
	nameCont.x = 0;
	nameCont.y = spacing_y;
	nameCont.buttonMode = true;
	nameCont.alpha = 0
	addChild(nameCont);
	var textCont:TextField = new TextField();
	textCont.selectable = false;
	textCont.text = nameHolder;
	trace("hello");
	nameCont.addChild(textCont);
	
}

```

I have the movieclip set to button mode but It is not showing up as button mode = true. Any help?
