Skip to main content
Inspiring
December 4, 2008
Question

suggestions for a loop to load text files

  • December 4, 2008
  • 2 replies
  • 376 views
Any suggestions for a loop so I can preload several text files into variables. Do I need to do the getBytesloaded / total routine so that the second doesn't start until the first finishes? Will they bump into each other if I try to load them all at once?

thanks
This topic has been closed for replies.

2 replies

Inspiring
December 5, 2008
thank you very much
Inspiring
December 5, 2008
Yes,
you need to execute the load call untill all the text file get loaded.

simple steps
1. Push all the paths into and array
2. set starting index as 0
3. after the text file is loaded increment the index and pass it to load next text.
continue untill you succeed
once the index count equals the length of the array stop loading text