# Autoscroll imported txt file

**URL:** <https://forum.kirupa.com/t/autoscroll-imported-txt-file/226064>\
**Category:** Uncategorized\
**Created:** [May 17, 2007, 10:15pm UTC](https://forum.kirupa.com/t/autoscroll-imported-txt-file/226064 "2007-05-17T22:15:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimicus](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Dimicus](https://forum.kirupa.com/u/Dimicus)\
**Post date:** [May 17, 2007, 10:15pm UTC](https://forum.kirupa.com/t/autoscroll-imported-txt-file/226064/1 "2007-05-17T22:15:12Z")

</div>

Hi guys.

Hope you can help me out some here.  
Im kind of new to flash.

Ok here is what i want to do.

I have imported a rather large text file in to a text box and i cant see all data in it.

i use the command “loadVariables(“text.txt”,”\_root");"

when i run movie i can only see the text that fits in the text box so what i want to do  
is a function that autoscroll the text in the text.txt file in the textbox so i can read all the content in the text.txt file.

what i have understand so far is that the way to do it is.

1. Create the text.txt
2. Open flash
3. In first frame take “action” print in code “loadVariables(“text.txt”,”\_root");"
4. Go to second frame make a “insert blank keyframe” and take “action” insert code stop()
5. make the textbox
6. insert the variable “text” in the texbox properties "since my text.txt first line is “&text=”
7. Make it to dynamic text
8. Run movie

so far so good. i can see the text in them movie now but only so mutch text as the text box size.

so what i want to do now is the text to scroll up and make all the text in the text file scroll up.

i applied the code

var myInterval = setInterval(scrollUp,50);

function scrollUp(){  
text\_MC.\_y -= 5;  
// text\_MC is the name of the text box  
}

and the text was scrolling up but still only so mutch text that fitted in the textbox from the first place. not all the text in the text.txt file.

I have been looking around for hours on the net and forums for a good code or tutorial but its hard to find.

I hope someone is able to help.

Cheers  
Dimicus
