# UIscrollBar - positioning the scroller

**URL:** <https://forum.kirupa.com/t/uiscrollbar-positioning-the-scroller/235748>\
**Category:** flash\
**Created:** [August 14, 2007, 12:58pm UTC](https://forum.kirupa.com/t/uiscrollbar-positioning-the-scroller/235748 "2007-08-14T12:58:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bardic](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bardic/32/3708_2.png) [@bardic](https://forum.kirupa.com/u/bardic)\
**Post date:** [August 14, 2007, 12:58pm UTC](https://forum.kirupa.com/t/uiscrollbar-positioning-the-scroller/235748/1 "2007-08-14T12:58:29Z")

</div>

Hello hello,  
Simple problem for anyone that know the bloody keyword I’m supposed to be using here.  
I’m attempting to get my UIscrollBar to reposition the scroller to the top every time there’s new text loaded into the textfield.

I have tried scroll and scrollPostion=0 and every other keyword in the livedocs.

I have even tried creating at runtime and thought that it being remade every time would reposition it but apparently not ☹

```auto

destroyObject("mcArticle.uiscroll");
            
            mcArticle.createClassObject(mx.controls.UIScrollBar, "uiscroll", mcArticle.getNextHighestDepth());
            mcArticle.uiscroll.setScrollTarget(mcArticle.stupidBox);
            mcArticle.uiscroll.setSize(16,mcArticle.stupidBox._height);            
            mcArticle.uiscroll.move(mcArticle.stupidBox._x+mcArticle.stupidBox._width,mcArticle.stupidBox._y);

```

When I do it that way, it also creates a white rectangle on stage :S

Any help would be great! Thanks in advance :gm:
