PDA

View Full Version : A <*&^$)#@@%#%@ loadvariable problem !!!!!


C!
01-17-2002, 08:22 PM
Hi again !

I have an illogical problem and i'm stuck !

I made a loadvariables on frame1:
loadVariablesNum ("acceuil.txt", 0);
loadVariablesNum ("mission.txt", 0);
loadVariablesNum ("nosjeux.txt", 0);
loadVariablesNum ("communique.txt", 0);
loadVariablesNum ("promotion.txt", 0);
//
//
if ((EOFacceuil=2) && (EOFmission=1) && (EOFnosjeux=1) && (EOFcommunique=1) && (EOFpromotion=1)) {
gotoAndPlay (3);
} else {
gotoAndPlay (2);
}

tg
01-17-2002, 11:46 PM
did you do your "swonking"? if not, do a search on "swonk" in these forums.

pixelwit
01-18-2002, 12:38 AM
Does frame 2 send you back to frame 1? If not, what do frames 2 and 3 do?

-PiXELWiT
http://www.pixelwit.com

C!
01-18-2002, 02:34 AM
Sorry my post was crop !!!!!!?

I made a loadvariables on frame1:
loadVariablesNum ("acceuil.txt", 0);
loadVariablesNum ("mission.txt", 0);
loadVariablesNum ("nosjeux.txt", 0);
loadVariablesNum ("communique.txt", 0);
loadVariablesNum ("promotion.txt", 0);

if ((EOFacceuil=2) && (EOFmission=1) && (EOFnosjeux=1) && (EOFcommunique=1) && (EOFpromotion=1)) {
gotoAndPlay (3);
} else {
gotoAndPlay (2);
}

frame 2
gotoAndPlay (1);

Still cropping my post :confused: :mad: :mad: :mad: ......

Jesse
01-18-2002, 06:11 AM
The crop doesn't matter, the problem is obvious. When you load in data it comes in as strings, regardless of what form it is in the file. Therefor each of your EOF markers is a string. Further, you need a double euqals to test. Single is set.
if ((EOFacceuil=="2") && ... see if you can do the rest

C!
01-19-2002, 01:02 AM
I get it .........................yesssssssssssssssssssssss s.......

Jesse !

if ((EOFacceuil == "true") && :D
if ((EOFacceuil=="2") && :(

For the other....
in resume
mytext.txt
var1=blahblahblah
&EOFacceuil=true&

Vive le swonking!

C!