dazza
11-26-2005, 12:48 PM
having a problem ...still...with using variables loaded into flash from text file: simple mistake i expect/hope!
loading textfile settings.txt with content: StudText=hello&finished=yes
trying to get flash to see the result "hello" and hopefully then add if statement; if StudText == "hello" make mc visible = true.
problem is i am falling at the first hurdle, text displays fine in textfields but when i trace the content of the textfield it is always 'undefined'
frame 1 of movie :
loadVariables("settings.txt", this);
if (! (finished == "yes")) {
gotoAndPlay("waitForLoad");
}
stop();
frame 2 of movie:
stop();
trace("text: "+r.text);
trace(StudText);
trace(finished);
all traces show undefined despite text info being correctly loaded into the textfield in frame 2. also the Waitforload if statement moves successfully to frame 2 even if statement is changed to finished == "no". I am at a loss - all i want to do is use a text file to set a mc property flash seems to display dynamic text but not recognise the variables -is it a syntax/string problem?.
hope somone can help!
loading textfile settings.txt with content: StudText=hello&finished=yes
trying to get flash to see the result "hello" and hopefully then add if statement; if StudText == "hello" make mc visible = true.
problem is i am falling at the first hurdle, text displays fine in textfields but when i trace the content of the textfield it is always 'undefined'
frame 1 of movie :
loadVariables("settings.txt", this);
if (! (finished == "yes")) {
gotoAndPlay("waitForLoad");
}
stop();
frame 2 of movie:
stop();
trace("text: "+r.text);
trace(StudText);
trace(finished);
all traces show undefined despite text info being correctly loaded into the textfield in frame 2. also the Waitforload if statement moves successfully to frame 2 even if statement is changed to finished == "no". I am at a loss - all i want to do is use a text file to set a mc property flash seems to display dynamic text but not recognise the variables -is it a syntax/string problem?.
hope somone can help!