I have this code that basically reads some text from a txt file and then scrolls it across my flash document. I want it to loop, so when it gets to the end of the text, it replays it. any thoughts? Thanks for any help in advance. I can’t seem to figure it out.
function scroller3a()
{
//set some initial variable values
txt3a.myText3a_txt._width = txt3a.myText3a_txt.textWidth; //expand clip to fit all text
txt3a.myText3a_txt.multiline = false;
txt3a.myText3a_txt.autoSize = "left";
txt3a.onEnterFrame = function() {
txt3a.myText3a_txt._x -= 3; //controls the speed of the scroll
if (txt3a.myText3a_txt._x < endOfText3a)
{//we've just went off of screen reset text position
txt3a.myText3a_txt._x = resetPos3a;
delete this["onEnterFrame"]; //deletes mcText onEnterFrame event
scroller3a();
}
}
}
scroller3a(); //calls the function