# Kirupa custom scroller help (set content .\_y)

**URL:** <https://forum.kirupa.com/t/kirupa-custom-scroller-help-set-content--y/210638>\
**Category:** flash\
**Created:** [December 20, 2006, 4:48pm UTC](https://forum.kirupa.com/t/kirupa-custom-scroller-help-set-content--y/210638 "2006-12-20T16:48:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![freddiemiles](https://avatars.discourse-cdn.com/v4/letter/f/ea666f/32.png) [@freddiemiles](https://forum.kirupa.com/u/freddiemiles)\
**Post date:** [December 20, 2006, 4:48pm UTC](https://forum.kirupa.com/t/kirupa-custom-scroller-help-set-content--y/210638/1 "2006-12-20T16:48:57Z")

</div>

[http://www.kirupa.com/developer/flash8/scrollbar.htm](http://www.kirupa.com/forum/../developer/flash8/scrollbar.htm)

trying to move to a certain point in my content without actually usually the scrollFace or arrow buttons. I can move the content easily enough by just setting the \_y position of the content MC, but figuring out the placement of the scrollFace is driving me nuts. Any suggestions?

Hoping for something like this:

```auto

function moveMyContent(ypos) {
      contentMain._y = ypos;
      scrollFace._y = ???? 
}

```

[COLOR=Black]  
[/COLOR][COLOR=Black]I’m sure it’s something like ypos\*(contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight) but I can’t get it. :jail:[/COLOR]
