Large dynamic text file in flash

Need help with Photoshop, the GIMP, Illustrator, or others? Want to show off your work? Looking for advice on your newest Flash stuff?

Moderator: General Moderators

Post Reply
ageorghiou
Forum Newbie
Posts: 12
Joined: Fri Oct 28, 2005 6:25 am

Large dynamic text file in flash

Post 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
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

Post 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.
Post Reply