PDA

View Full Version : Preloading external text?


simontheak
07-01-2002, 01:17 PM
I don't know if this is possible - but basically I have a problem at the moment that when I ímport text from an external text file in to a movie clip, it takes a while to load up. While it's doing it stuff the visitor is greeted with a rather unattractive variable that says something along the lines of "_root.holder01"... or something like that anyway.

The question is, is it possible to preload this text before the moviescript appears on the timeline or do I just have to one big preloader at the start of that movie?

Thanks very much

ScratUAD
07-01-2002, 02:45 PM
yes... use a preloader... if you read around in the forums... you'll find one...

I think... frame one has the code to load the text files and whatever else you want on the stage.
frame 2 has this:

if (EOF!=1) {
gotoAndPlay(1);
} else {
if (EOF=1) {
gotoAndPlay("wherever you want");
}

this tells it to goto the first frame if it has not yet reached the "End Of File"

as for your garbled ugly text... I got rid of that by putting in frame one...

datextboximade = " "

that sets it as blank.

have fun.

simontheak
07-01-2002, 02:56 PM
Do you mean a preloader at the beginning of the whole movie or is it possible to have a preloader especially for the external text?

Also is it going to be a problem that the target for the text doesn't appear until half way through the time line.

ScratUAD
07-01-2002, 03:00 PM
the preloader I'm talking about is just for the external text...
you put that in the first 2-3 frames before you have your text shown.

try looking at
SonFire TaeKwonDo (http://www.sonfiremartialarts.com)
this is my site...
if you look under "belt tenets" in the center on the bottom...
(yeah it needs work) but it's what yer looking for.
for the 9 text files I have loaded as variables.

check that out.