i'm developing an application that uses getNetText and postNetText for a text file that stores user responses. everything works ... sort of.
two problems:
i open director and play the movie, and when i click on one option it gets text using getNetText. but the first time i play it, it doesn't load any of the text. if i stop the movie, start it over, and click again, it properly reads the text file. why doesn't it work correctly the first time?
also, once it has properly read text, i have the program write additional text to the file. then when i read again with getNetText, it still reads the OLD version of the text file, it doesn't reflect the changes that were saved. before i use getNetText, i make sure the variable i store the text file in is empty. the problem is solved if i close director entirely, then re-open it... (but then i run into the first problem again, of course.) how can i make sure that getNetText actually reads the file every time it's used?
quick replies would be greatly appreciated as i have about 2 days to finish this program =)
two problems:
i open director and play the movie, and when i click on one option it gets text using getNetText. but the first time i play it, it doesn't load any of the text. if i stop the movie, start it over, and click again, it properly reads the text file. why doesn't it work correctly the first time?
also, once it has properly read text, i have the program write additional text to the file. then when i read again with getNetText, it still reads the OLD version of the text file, it doesn't reflect the changes that were saved. before i use getNetText, i make sure the variable i store the text file in is empty. the problem is solved if i close director entirely, then re-open it... (but then i run into the first problem again, of course.) how can i make sure that getNetText actually reads the file every time it's used?
quick replies would be greatly appreciated as i have about 2 days to finish this program =)