jerryj
January 21st, 2005, 06:42 PM
hi,
does anyone know if you can load text from an external textfile into two columns, going to the second when the first is filled??
I only found this (okay, three columns, but I mean the text here is not externally loaded)
article = "The Norwegian hacker famous for blablabla.";
words = article.split(" ");
targetColumn = 1;
for (i=0; i<words.length; i++) {
this["col"+targetColumn].text += words[i]+" ";
if (this["col"+targetColumn].maxscroll>1) {
i--;
targetColumn++;
}
}
Maybe I could load my external text into such a string, does anyone jnow how to do that?
Thank you,
Jerryj.
does anyone know if you can load text from an external textfile into two columns, going to the second when the first is filled??
I only found this (okay, three columns, but I mean the text here is not externally loaded)
article = "The Norwegian hacker famous for blablabla.";
words = article.split(" ");
targetColumn = 1;
for (i=0; i<words.length; i++) {
this["col"+targetColumn].text += words[i]+" ";
if (this["col"+targetColumn].maxscroll>1) {
i--;
targetColumn++;
}
}
Maybe I could load my external text into such a string, does anyone jnow how to do that?
Thank you,
Jerryj.