# Dynamicly create nested movieclips

**URL:** <https://forum.kirupa.com/t/dynamicly-create-nested-movieclips/207793>\
**Category:** Uncategorized\
**Created:** [November 21, 2006, 4:10pm UTC](https://forum.kirupa.com/t/dynamicly-create-nested-movieclips/207793 "2006-11-21T16:10:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommyflash](https://avatars.discourse-cdn.com/v4/letter/t/6f9a4e/32.png) [@tommyflash](https://forum.kirupa.com/u/tommyflash)\
**Post date:** [November 21, 2006, 4:10pm UTC](https://forum.kirupa.com/t/dynamicly-create-nested-movieclips/207793/1 "2006-11-21T16:10:35Z")

</div>

Hi I´m trying to make a newspage in flash which is updateable throug a simple textfile.

I´m loading text into an array, then split it up with a delimiter in the textfield, an create a new textfield for each delimiter. This works perfectly, but when i try to put all of this inside another movieclip, in order to make the hole thing scrollable insaide a box, it doesn´t work.

I´m all new to actionscript, so maybe this is not the way to do it at all. I´m happy for any ideas.

the code:  
\_root.nytt\_container.nytt\_fade\_inn.createEmptyMovieClip(“nytt\_holder\_mc”, 1);  
with (nytt\_holder\_mc) {  
//beginFill(0xffffff, 100);  
moveTo(40, 150);  
lineTo(700, 150);  
lineTo(700, 380);  
lineTo(40, 380);  
lineTo(40, 150);  
// endFill();  
}

news = new Array();  
lv = new LoadVars();  
lv.onLoad = function() {  
fl = this.nyheter;  
news = fl.split(“TIBENYTT”);  
c = news.length-1;  
y\_pos=10;  
d=20;  
for (i=0; i\<c; i++) {  
curr\_name = [“container”+i];  
//curr\_sb = [“txt\_sb”+i];  
\_root.nytt\_container.nytt\_fade\_inn.nytt\_holder\_mc.createTextField(curr\_name,d,20,y\_pos,300,200);  
(eval(curr\_name)).html=true;  
(eval(curr\_name)).htmlText=news\*;  
(eval(curr\_name)).wordWrap = true;  
trace(news\*);  
trace(curr\_name);  
//trace(curr\_sb);

```
	d = d+1;
	y_pos = y_pos+100;
};

```

};  
lv.load(“split.txt”);
