Large dynamic text file in flash
Posted: Mon Sep 11, 2006 7:20 am
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:
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
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");thanks
Andreas