PDA

View Full Version : loadVariables/including files


Kahrax
06-09-2001, 01:45 PM
I have a textfile named "welcome.txt". Inside the text file it says: Message=Hello world

Inside my flash animation I have a textbox with variable set to "text". Then I have this code in my first frame of the scene (the scene is one frame long):

loadVariables ("Welcome.txt","0");
text = Message:

But it does NOT show up when I test my movie! My textbox i BLANK?? Why? What did I do wrong?

Jesse
06-10-2001, 06:03 AM
hmmm see yesterday I posted an aanouncement, which is still up today, and entitled -everyone read. in that announcement I said that this question is asked so often I thought I'd show everyone. obviouslyl you missed that bit :)
load actions are performed last in a sequence of code and as such your variables aren't loaded yet, so you can't set another variable to the value of Message on the same frame/button.