# Scrolling news box up to a certain value

**URL:** <https://forum.kirupa.com/t/scrolling-news-box-up-to-a-certain-value/217841>\
**Category:** Uncategorized\
**Created:** [March 2, 2007, 10:49am UTC](https://forum.kirupa.com/t/scrolling-news-box-up-to-a-certain-value/217841 "2007-03-02T10:49:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tillie](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Tillie](https://forum.kirupa.com/u/Tillie)\
**Post date:** [March 2, 2007, 10:49am UTC](https://forum.kirupa.com/t/scrolling-news-box-up-to-a-certain-value/217841/1 "2007-03-02T10:49:21Z")

</div>

hello!

I have UP and DOWN buttons and i want them to scroll my newsMC when rolledOver.

this is the code in emptyMC on a second frame:

```auto
if (_root.up) { 
_root.newsMC._y += 10;
if(_root.newsMC._y >=22){
 _root.newsMC._y = 22;
}
} else if (_root.down) {
_root.newsMC._y -= 10;
if(_root.newsMC._y <=-35){
 _root.newsMC._y = -35;
}
 }
 updateAfterEvent();
 gotoAndPlay (1);

```

It works!!! but only after i roll over the UP button:crying: then both UP and DOWN work  
If i go over down button first nothing happens

any sugestions??  
thanks:crazy:
