# Scroll reposition

**URL:** https://forum.kirupa.com/t/scroll-reposition/45386
**Category:** Uncategorized
**Created:** [March 13, 2004, 10:10pm UTC](https://forum.kirupa.com/t/scroll-reposition/45386 "2004-03-13T22:10:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dude9er](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dude9er](https://forum.kirupa.com/u/dude9er)
#### Post date: [March 13, 2004, 10:10pm UTC](https://forum.kirupa.com/t/scroll-reposition/45386/1 "2004-03-13T22:10:26Z")

</div>

so I have a scroll bar in my portfoilio section, which is made using a movie. You can obviously slide the scroll bar to view tumbnails under the [COLOR=blue]web section[/COLOR] . when a user presses another button in the portfolio section to view my [COLOR=blue]3d section[/COLOR] it hides the [COLOR=blue]web section[/COLOR] and shows the 3d section.

What is the code to have the scroll bar “refresh” to the beginning of the [COLOR=blue]web section[/COLOR] when the [COLOR=blue]3d section[/COLOR] is pressed? Is this possible? I’ve looked but can’t seem to find anything.

I think you use setScrollPosition, but I’m not sure where I put all this. My scroll movie is called “printscroller” and the scroller within that movie is called “dragger”. Hope this helps.

Thanks.

---

<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: [March 13, 2004, 10:26pm UTC](https://forum.kirupa.com/t/scroll-reposition/45386/2 "2004-03-13T22:26:41Z")

</div>

Im assuming you are using the scrollbar component.  
Whenever you change the text, reset the scroll position for the textfield to the default position:

```auto
mytextfield.scroll=1;

```
