# Scrollbar dynamic text box reset?

**URL:** <https://forum.kirupa.com/t/scrollbar-dynamic-text-box-reset/58820>\
**Category:** Uncategorized\
**Created:** [July 26, 2004, 2:09pm UTC](https://forum.kirupa.com/t/scrollbar-dynamic-text-box-reset/58820 "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/58820/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:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 26, 2004, 3:59pm UTC](https://forum.kirupa.com/t/scrollbar-dynamic-text-box-reset/58820/2 "2004-07-26T15:59:23Z")

</div>

```auto

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

```

---

<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:** [July 26, 2004, 6:05pm UTC](https://forum.kirupa.com/t/scrollbar-dynamic-text-box-reset/58820/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.
