# Scrolling news

**URL:** <https://forum.kirupa.com/t/scrolling-news/216426>\
**Category:** Uncategorized\
**Created:** [February 16, 2007, 9:08am UTC](https://forum.kirupa.com/t/scrolling-news/216426 "2007-02-16T09:08:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![laudato](https://avatars.discourse-cdn.com/v4/letter/l/96bed5/32.png) [@laudato](https://forum.kirupa.com/u/laudato)\
**Post date:** [February 16, 2007, 9:08am UTC](https://forum.kirupa.com/t/scrolling-news/216426/1 "2007-02-16T09:08:35Z")

</div>

please, can someone help me with my automatic scroll?  
it should stop when you put mouse over it and continue to scroll on rollout. i want to make news scroll with links, so i want it to stop when user wants to click on a news.

```auto
myVars = new LoadVars();
myVars.onLoad = function() {
    txt_prvi.htmlText = this.txt_prvi;
    txt_prvi.html = true;
    sirina_ = txt_prvi.textHeight;
    // sirina texta ti je onda
    visina_ = txt_prvi.textHeight;
    duplicateMovieClip("txt_prvi", "txt_drugi", this.getNextHighestDepth());
        txt_drugi.html = true;
    txt_drugi.htmlText = txt_prvi.htmlText;
    // postavis drugi text pored prvog i pomeris za jedno 5 px
    txt_drugi._y = txt_prvi._y+visina_+50;
    txt_drugi._x = txt_prvi._x;
    // skrolujes na onEnterFrame
    onEnterFrame = function () {
        txt_prvi._y -= 0.5;
        txt_drugi._y -= 0.5;
        if ((txt_prvi._y+sirina_)<0) {
            // ako je tekst ispao iz neke granice na primer 0 
            txt_prvi._y = txt_drugi._y-1;
            //
            txt_drugi._y = txt_prvi._y+visina_+50;
        }
    };
};

```
