# Dynamic Text - Adding mulitple lines

**URL:** <https://forum.kirupa.com/t/dynamic-text-adding-mulitple-lines/159308>\
**Category:** flash\
**Created:** [August 16, 2005, 5:28pm UTC](https://forum.kirupa.com/t/dynamic-text-adding-mulitple-lines/159308 "2005-08-16T17:28:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yodannysullivan](https://avatars.discourse-cdn.com/v4/letter/y/8797f3/32.png) [@yodannysullivan](https://forum.kirupa.com/u/yodannysullivan)\
**Post date:** [August 16, 2005, 5:28pm UTC](https://forum.kirupa.com/t/dynamic-text-adding-mulitple-lines/159308/1 "2005-08-16T17:28:11Z")

</div>

Hi. I’m trying to write an actionscript that will load additional lines within a dynamic text block (i.e. new text that loads below text that already sits within the text block). Here is where I am so far (a script from a kirupa tutorial):

::::::::::

on (release) {  
loadText = new loadVars();  
loadText.load(“sp\_001.txt”);  
loadText.onLoad = function(doit) {  
if (doit) {  
textBox.html = true;  
textBox.htmlText = this.spText add existing;  
}  
};  
}

:::::::::::::::

Logically, I know what to do but am lacking the skills to script it. It seems I need to define how long I want the list and then if/else. Any help is appreciated. Thanks.
