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.
- Create the text.txt
- Open flash
- In first frame take “action” print in code “loadVariables(“text.txt”,”_root");"
- Go to second frame make a “insert blank keyframe” and take “action” insert code stop()
- make the textbox
- insert the variable “text” in the texbox properties "since my text.txt first line is “&text=”
- Make it to dynamic text
- 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