# Dynamic Text, external sources

**URL:** <https://forum.kirupa.com/t/dynamic-text-external-sources/278642>\
**Category:** flash\
**Created:** [January 3, 2009, 12:29am UTC](https://forum.kirupa.com/t/dynamic-text-external-sources/278642 "2009-01-03T00:29:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dstx](https://avatars.discourse-cdn.com/v4/letter/d/b3f665/32.png) [@dstx](https://forum.kirupa.com/u/dstx)\
**Post date:** [January 3, 2009, 12:29am UTC](https://forum.kirupa.com/t/dynamic-text-external-sources/278642/1 "2009-01-03T00:29:11Z")

</div>

I’m trying to follow the following tutorials but need help getting dynamic text to work.  
[http://www.kirupa.com/developer/mx/dynamic\_scroller.htm](http://www.kirupa.com/developer/mx/dynamic_scroller.htm)  
[http://www.kirupa.com/developer/mx/multiple\_dynamictext.htm](http://www.kirupa.com/developer/mx/multiple_dynamictext.htm)

In Flash 8, I have a layer (“Stop”) with 2 buttons and a dynamic textbox with scrollbar, and a stop action on last frame of main timeline. Textbox is given instance name of “textBox”.

I have created 3 text .txt files, and saved them to same folder with movie file. Text in files is preceeded by “article =” on line preceeding text. The files were created in Rich text format on Mac OSX4.11 and saved with .rtf extension, then file extension was changed to .txt (wouldn’t save as .txt)

Last frame on which I’m working has the following actionscript:

stop();  
loadText = new LoadVars();  
loadText.load(“TEXTintro.txt”);  
//creating the loadVarsText function  
loadText.onLoad = function() {  
textBox.text = this.article;  
};

Buttons have an instance name assigned with the following actionscript:  
on (release) {  
loadText = new LoadVars();  
loadText.load(“TEXT1.txt”);  
loadText.onLoad = function() {  
textBox.text = this.article;  
};

I am getting the following errors:  
**Error** Scene=MoonOfWintertime, layer=Stop, frame=2500:Line 1: Statement block must be terminated by ‘}’  
on (release) {

**Error** Scene=MoonOfWintertime, layer=Stop, frame=2500:Line 6: Syntax error.  
};

**Error** Scene=MoonOfWintertime, layer=Stop, frame=2500:Line 1: Statement block must be terminated by ‘}’  
on (release) {

**Error** Scene=MoonOfWintertime, layer=Stop, frame=2500:Line 7: Syntax error.

Total ActionScript Errors: 4 Reported Errors: 4
