ok, lets say i have a button, and when you click on the button i want a text box to say whatever is in a text file, is this possible using actions?
Printable View
ok, lets say i have a button, and when you click on the button i want a text box to say whatever is in a text file, is this possible using actions?
Hmm... let me try...
Just give your Dynamic Text box a Variable Name. And that should do itCode:On (Release)
LoadVariablesNum("external.txt" , dynamic_text_var_name)
yeah, thats what i thought at first, but when i do that, it opens a new explorer window with the file in it... for example i want to load text.txt, and the contents is "checking to see if it works" instead of putting it into the text box (main_text) it just opens a new window of text.txt
Have you tried putting the Button in a MC.
Also, make sure you have it as _self... not _blank
sorry, im very new to flash, what do you mean by MC and have what as _self, and _blank
Let me see if I can recreate what is happening to you.
i have a button and a multiline dynamic text box with html and wordwrap named atlantis, and in the button i have this
on(release){
loadVariablesNum ("test.txt", atlantis);
}
the test.txt is in the same folder as the project file, and it will load it into a new window.... thanks a lot for the help, there arent too many people who will actually help people step by step
This is what I did...
Made a Button.
Put it on the Main Movie.
The scripting i added to the button is:
Then I made a dynamic text box with a variable name of "output"Code:on (release) {
loadVariables ("textfile.txt", output);
}
Then... I made my external file named textfile.txt with the following writtin in it:
Then Poof. Thats All there is. Just make sure the SWF and the TEXT file are in the same directory.Code:output="qui4HFIUHF4H8IUQA8UHFAQIU4F5IUN4FNIU;FA54NIU;5IUN54"
i got it to work, the problem was it had the html checked, so that is what makes it not work, what if i wanted html, then what would i put in the text file output=??
I am not really sure. From my understanding, having HTML checked means that you can have HTML in there. I think you just use it the same way. If not, I dont know.
yeah, thats what i thought too, but go to your example you made and check the html, then try it, it doesnt work