# Scrolling Dynamically Loaded Text by kirupa chinnathambi

**URL:** <https://forum.kirupa.com/t/scrolling-dynamically-loaded-text-by-kirupa-chinnathambi/193611>\
**Category:** flash\
**Created:** [July 14, 2006, 3:09pm UTC](https://forum.kirupa.com/t/scrolling-dynamically-loaded-text-by-kirupa-chinnathambi/193611 "2006-07-14T15:09:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nofx1728](https://avatars.discourse-cdn.com/v4/letter/n/3e96dc/32.png) [@nofx1728](https://forum.kirupa.com/u/nofx1728)\
**Post date:** [July 14, 2006, 3:09pm UTC](https://forum.kirupa.com/t/scrolling-dynamically-loaded-text-by-kirupa-chinnathambi/193611/1 "2006-07-14T15:09:10Z")

</div>

Alright I’m trying to work through this tutorial, but I’m not having success. Here is the link: [http://www.kirupa.com/developer/mx/dynamic\_scroller.htm](http://www.kirupa.com/developer/mx/dynamic_scroller.htm). Ok I create an .fla that is going to be loaded as an external swf.

First frame I label text, and I draw a dyanmic text box - instance name: scroller - select multiline, and enable scrolling.

I also put a two buttons on the layer to scroll the text. (Also tried it with the component UIscrollbar) Actions on the button are:

on (press) {  
onEnterFrame = function() {  
this.scroller.scroll -= 1;  
}  
}  
on (release, releaseOutside) {  
delete onEnterFrame;  
}

Second layer I put a border.

Third layer I put my actions:

loadText = new loadVars();  
loadText.load(“about.txt”);  
//creating the loadVarsText function  
loadText.onLoad = function() {  
scroller.text = this.abouttext;  
};

Then I create a txt file with notepad, save it as about.txt and put the lind abouttext= on the top line of the text file.

I test my movie and I get this error message:

**Warning** Scene=Scene 1, layer=actions, frame=1:Line 3: The identifier ‘loadVars’ will not resolve to built-in object ‘LoadVars’ at runtime.  
loadText = new loadVars();  
Total ActionScript Errors: 1 Reported Errors: 1

Any clue on what to do?

Thanks,

nofx1728
