# Help with my news scroller!

**URL:** <https://forum.kirupa.com/t/help-with-my-news-scroller/215653>\
**Category:** flash\
**Created:** [February 9, 2007, 1:30am UTC](https://forum.kirupa.com/t/help-with-my-news-scroller/215653 "2007-02-09T01:30:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Head\_In\_A\_Pan](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@Head\_In\_A\_Pan](https://forum.kirupa.com/u/Head_In_A_Pan)\
**Post date:** [February 9, 2007, 1:30am UTC](https://forum.kirupa.com/t/help-with-my-news-scroller/215653/1 "2007-02-09T01:30:54Z")

</div>

Hey -  
I have a news scroller which is working apart from one thing:  
The end of the text string does not quite scroll completely off the screen - it disappears into thin air near the end and THEN starts scrolling from right to left again.  
How do I make it so the text scrolls completely off the screen before returning?

```auto

var loadText:LoadVars = new LoadVars();
loadText.load("news.txt");
loadText.onData = function(src:String):Void {
    if (src != undefined) {
        news_txt.htmlText = " "+src;
        scrollText();
    } else {
        news_txt.htmlText = "could not load data";
    }
};
function scrollText() {
    onEnterFrame = function () {
        if (news_txt.hscroll<news_txt.maxhscroll) {
            news_txt.hscroll+=30;
        } else {
            news_txt.hscroll = 1;
        }
    };

}

```
