# Scrollbar dynamic text box reset?

**URL:** https://forum.kirupa.com/t/scrollbar-dynamic-text-box-reset/117288
**Category:** Uncategorized
**Created:** [July 26, 2004, 2:09pm UTC](https://forum.kirupa.com/t/scrollbar-dynamic-text-box-reset/117288 "2004-07-26T14:09:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![natronp](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@natronp](https://forum.kirupa.com/u/natronp)
#### Post date: [July 26, 2004, 2:09pm UTC](https://forum.kirupa.com/t/scrollbar-dynamic-text-box-reset/117288/1 "2004-07-26T14:09:45Z")

</div>

is there a way to reset the scrollbar to the top position? I’m using one dynamic text box and loading different .txt files into it based on a user selection. the problem is that if a user scrolls down halfway through the text in one .txt file and then clicks on a button to load a different .txt file, the scrollbar remains at whatever position it was left at. I need a reset function for my scrollbar so that when i trigger a load (of a new .txt file) it’ll jump back to the top. any such thing?

thanks for any help!

---

<div class="post-metadata">

### Author: ![macneilslt](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@macneilslt](https://forum.kirupa.com/u/macneilslt)
#### Post date: [July 26, 2004, 3:59pm UTC](https://forum.kirupa.com/t/scrollbar-dynamic-text-box-reset/117288/2 "2004-07-26T15:59:23Z")

</div>

```auto

on (release) {
	_root.textBoxInstanceName.scroll = 0;
	//other actions
}

```

---

<div class="post-metadata">

### Author: ![natronp](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@natronp](https://forum.kirupa.com/u/natronp)
#### Post date: [July 26, 2004, 6:05pm UTC](https://forum.kirupa.com/t/scrollbar-dynamic-text-box-reset/117288/3 "2004-07-26T18:05:25Z")

</div>

hmm… that doesn’t work.

when I click on a new button to update the dyn text box the scroller jumps up slightly but doesn’t return to it’s zero/top starting point.
