Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-22-2002, 09:05 AM   #1
vosgien
member
 
Join Date: Dec 2001
Location: France
Posts: 923
Default &EOF = false;

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
vosgien is offline   Reply With Quote
Old 11-23-2002, 07:18 AM   #2
Ricod
(@_@) -("pretty lights")
 
Ricod's Avatar
 
Join Date: Sep 2001
Location: the Netherlands
Posts: 3,982
Default

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.
__________________
RicoD
Link ?
Ricod is offline   Reply With Quote
Old 11-23-2002, 07:45 AM   #3
vosgien
member
 
Join Date: Dec 2001
Location: France
Posts: 923
Default

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
vosgien is offline   Reply With Quote
Old 11-23-2002, 08:18 AM   #4
Ricod
(@_@) -("pretty lights")
 
Ricod's Avatar
 
Join Date: Sep 2001
Location: the Netherlands
Posts: 3,982
Default

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
__________________
RicoD
Link ?
Ricod is offline   Reply With Quote
Old 11-23-2002, 01:10 PM   #5
vosgien
member
 
Join Date: Dec 2001
Location: France
Posts: 923
Default

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
vosgien is offline   Reply With Quote
Old 11-23-2002, 08:24 PM   #6
Ricod
(@_@) -("pretty lights")
 
Ricod's Avatar
 
Join Date: Sep 2001
Location: the Netherlands
Posts: 3,982
Default

Okay, glad it was helpful !

Mwa, not really. Nowadays I tend to only answer those with small solutions, not those complete tutorials ...
__________________
RicoD
Link ?
Ricod is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:51 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.