# Simple scroll bar tutorial

**URL:** https://forum.kirupa.com/t/simple-scroll-bar-tutorial/182572
**Category:** flash
**Created:** [March 19, 2006, 5:19pm UTC](https://forum.kirupa.com/t/simple-scroll-bar-tutorial/182572 "2006-03-19T17:19:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![theyelllowdart](https://avatars.discourse-cdn.com/v4/letter/t/51bf81/32.png) [@theyelllowdart](https://forum.kirupa.com/u/theyelllowdart)
#### Post date: [March 19, 2006, 5:19pm UTC](https://forum.kirupa.com/t/simple-scroll-bar-tutorial/182572/1 "2006-03-19T17:19:18Z")

</div>

I followed this tutorial [http://www.kirupa.com/developer/flash8/scrollbar.htm](http://www.kirupa.com/developer/flash8/scrollbar.htm)

My question is how would i change the initial postion of the content and the scroll bar to start in the middle?

heres a diagram

------------------------^

blah balh blah  
blah blah blah  
Middle of the content-- []  
blah blah blah  
blha blha blha  
blah blah blah

-----------------------^

---

<div class="post-metadata">

### Author: ![theyelllowdart](https://avatars.discourse-cdn.com/v4/letter/t/51bf81/32.png) [@theyelllowdart](https://forum.kirupa.com/u/theyelllowdart)
#### Post date: [March 20, 2006, 4:57pm UTC](https://forum.kirupa.com/t/simple-scroll-bar-tutorial/182572/2 "2006-03-20T16:57:58Z")

</div>

bump, c’mon i made a kick \*\*\* diagram.

---

<div class="post-metadata">

### Author: ![theyelllowdart](https://avatars.discourse-cdn.com/v4/letter/t/51bf81/32.png) [@theyelllowdart](https://forum.kirupa.com/u/theyelllowdart)
#### Post date: [March 30, 2006, 7:17pm UTC](https://forum.kirupa.com/t/simple-scroll-bar-tutorial/182572/3 "2006-03-30T19:17:54Z")

</div>

can anyone say \*bump

---

<div class="post-metadata">

### Author: ![serkios](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/serkios/32/608_2.png) [@serkios](https://forum.kirupa.com/u/serkios)
#### Post date: [March 30, 2006, 7:23pm UTC](https://forum.kirupa.com/t/simple-scroll-bar-tutorial/182572/4 "2006-03-30T19:23:39Z")

</div>

After taking a brief look at the tutorial I would mess around with the init variables for the scroller:

```auto
var initPosition:Number = scrollFace._y=scrollTrack._y;
var initContentPos:Number = contentMain._y;

```

---

<div class="post-metadata">

### Author: ![theyelllowdart](https://avatars.discourse-cdn.com/v4/letter/t/51bf81/32.png) [@theyelllowdart](https://forum.kirupa.com/u/theyelllowdart)
#### Post date: [April 1, 2006, 2:54pm UTC](https://forum.kirupa.com/t/simple-scroll-bar-tutorial/182572/5 "2006-04-01T14:54:35Z")

</div>

Serkios, thanks for trying, but it didn’t work.
