Page 1 of 1

Large dynamic text file in flash

Posted: Mon Sep 11, 2006 7:20 am
by ageorghiou
I've got a flash text box that loads a txt file to get it's content. The txt file is ~400kb and so it is taking a long time to load and in the meantime just displays the empty text box and an empty scroll bar (flash 8 scrollbar component). Is there a way to have it display the text as it's loading so that at least you'll get the first few lines as it loads the rest?

current script for loading the txt file is:

Code: Select all

myData = new LoadVars();
 myData.onLoad = function() {
  ukList_box.html=true;
  ukList_box.htmlText = this.ukList;
  };
myData.load("ukList.txt");
Is there a different way to do load it in so that it displays the text as it loads AND still allows me to use the scroll bar?

thanks
Andreas

Posted: Mon Sep 11, 2006 3:49 pm
by kendall
ageorghiou,
Is there a different way to do load it in so that it displays the text as it loads
no way man...You can't see the data untill the whole thing finishes loading...you probably want to have a default text in the mean time stating the text is loading.