# Dynamic text - text possition

**URL:** https://forum.kirupa.com/t/dynamic-text-text-possition/43075
**Category:** flash
**Created:** [February 18, 2004, 4:52pm UTC](https://forum.kirupa.com/t/dynamic-text-text-possition/43075 "2004-02-18T16:52:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![fuzzyduck](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@fuzzyduck](https://forum.kirupa.com/u/fuzzyduck)
#### Post date: [February 18, 2004, 4:52pm UTC](https://forum.kirupa.com/t/dynamic-text-text-possition/43075/1 "2004-02-18T16:52:13Z")

</div>

Hi There

I’ve used the tutorial on here ‘Loading Text from External Sources’, which works great. The problem I’m having is, that if you scroll the text in one external file, if you click on a button to go to another file the text starts off to where u last scrolled to, when I want it to start at the beginning. The code behind the buttons is as follows:

on (release) {  
loadText = new loadVars();  
loadText.load(“TEXT2.txt”);  
loadText.onLoad = function(success) {  
if (success) {  
// trace(success);  
newsBox.html = true;  
newsBox.htmlText = this.myNews;  
}  
};  
}

Does anyone know how I can do this???  
Thanks x

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 18, 2004, 5:12pm UTC](https://forum.kirupa.com/t/dynamic-text-text-possition/43075/2 "2004-02-18T17:12:41Z")

</div>

Restore the scroll position to the first line:

```auto
on (release) {
	loadText = new loadVars();
	loadText.load("text1.txt");
	loadText.onLoad = function(success) {
		if (success) {
			// trace(success);
			**newsBox.scroll=1;**
			newsBox.html = true;
			newsBox.htmlText = this.myNews;
		}
	};
}

```

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 18, 2004, 5:48pm UTC](https://forum.kirupa.com/t/dynamic-text-text-possition/43075/3 "2004-02-18T17:48:37Z")

</div>

Excellent! Thank you.

I was struddling with some else that turns out really simple, so I thought I’d share in case anyone else searches for it.

I was having problems re-sizing my dynamic text box when there was lots of text in it. I’ve since discovered u just have to right click on the text box and click on ‘scrollable’. Yeah I now it’s simple but i couldn’t work it out for ages.
