Variables

a very important question: for a login i need to compare two variables.

one of the variables (passw) is loaded dynamically.
the other one (pw) is set by a form the user hast to fill.

i wrote the following code on a button in the frame where the user hast to type his password (passw is already loaded from a textfile):

on (release) {
if (pw == passw) {
gotoAndStop(4);
} else {
gotoAndStop(3);
}
}

in frame 3 i wrote: “wrong password”, code is stop ()
in frame 4: “welcome user”, code is stop()

i tried half an hour to fix that but i always get “wrong password”

plz help me

EDIT: one more question: is a movie loaded with loadMovie(…) able to work with variables set in the main movie (in which i loaded it) ?

Could I see the FLa or an examplpe.

A: yes, loaded movies can reference variables in the main movie, but you have to use _level0.variable name. _level0 references the main movie.

heres an example of what you were explainng before

thats it, exactly. thanks man. this forum rocks. fast help, friendly guys (and girls of course :smirk: )