PDA

View Full Version : &EOF = false;


vosgien
11-22-2002, 09:05 AM
Hi,
Before I launch into one, just noticed that Bleeda's about again, haven't seen you for a while man, trust all is well.

Problem: I have a small animation that plays whilst my movie is loading in txt files, code on end fr. of animation is:

if (_parent.holder.EOF == "true") {
gotoAndPlay(1); //this frame has a stop() action in it
} else {
gotoAndPlay(2);//this continues the animation whilst the txt is loading
}

Now it works fine with text, but in some case I load an swf, when I unload the swf the animation should play as there is no text file and EOF is not true - but it doesn't !!!
To ensure that EOF is false I have loaded in an empty.txt that has no vars at all.

Any help appreciated - it is an annoying little bug

Cheers

Vosgien

Ricod
11-23-2002, 07:18 AM
hum hum ... does it happen immideately ? Or after you've loaded something else ? (In which case _parent.holder.EOF == "true" already right ?)

I'd trace it anyway to check if its true, false or undefined ... the last seems to get weird reactions from time to time (well, mine does)... all I can think of at the moment ... nothing weird looking at the piece of code.

vosgien
11-23-2002, 07:45 AM
Hi Ricod,
Nope, its just when I load in an swf, when the swf finishes and is unLoaded the screen is blank. With the text, to ensure that something happens when a user clicks a button I load in an empty txt file so that EOF = false; then the animation plays whilst the real txt file is loading, the time lag is actually very short.
So, when I load in the swf, into a different mc, the empty txt file already exists in mc1(called holder) and therefore EOF = false, and the animation should keep playing behind the loaded swf - but, it doesn't.
At the moment it is not a huge problem cos' as I say the time lag is very short, but it would be nice just to finish it if properly.

Cheers

Vosgien

Ricod
11-23-2002, 08:18 AM
Hey there Vosgien ! Nice to see some people demand a certain level of quality !

What makes this EOF false then ? I always thought that unless you specify the EOF to be false, it will remain as "true". How about if you force it to be false be not loading an empty txt but one that says EOF=false

vosgien
11-23-2002, 01:10 PM
Hi,
Now that is a nice simple solution that completely escaped me - and it works. Well done and cheers man.

btw - see you been really busy today.

Cheers

Vosgien

Ricod
11-23-2002, 08:24 PM
Okay, glad it was helpful ! :D

Mwa, not really. Nowadays I tend to only answer those with small solutions, not those complete tutorials ... :rolleyes: