View Full Version : How to load text from a *.txt?
02-20-2003, 03:28 PM
I'm trying to get a Dynamic text field to load text from a *.txt file, so that I only have to upload a revised *.txt file to my server when I want to change the text in my FlashMX website. Obviously this means I don't have to actually go into flash and edit the text, publish then upload.
How do I do it?
02-20-2003, 04:14 PM
In your file you should have
varname = the text you want to display
And in your movie you simply display the variable varname into a dinamic text field.
Does anybody know how to define multiple variables into a txt file?
02-20-2003, 04:15 PM
and there you go :)
02-20-2003, 04:16 PM
...both of you :)
02-20-2003, 05:08 PM
its a good idea to make a variable "&loaded=1" at the end of the textfile, so in flash you can check if the text has loaded and play a loading animation or something like that while it hasn't
02-20-2003, 11:57 PM
Thank you guys... I'll give it a go.
02-21-2003, 01:28 AM
I can't get it to work. I have tried absolutely everything! It won't farking work!
02-21-2003, 04:05 AM
ok, finally I managed to get it to work in a completely new blank file.
I also got it to get a little further in my website, problem is that instead of loading the variable's content into the dynamic text box it actually opens a new explorer window and opens the text file completely as it is written. WTF!???
02-21-2003, 04:11 AM
some more info... I got it to at least launch the text file in explorer because I figure the problem is maybe because of levels (not that I have used any! thats why its so weird)
normally you replace the "_root" with "0" but at least _root did something...!
02-21-2003, 04:22 AM
AHA! I figured out something... :bounce:
The layer on which I am placing the dynamic text box is masked, when I remove the mask it works. I have checked if other content can be displayed underneath this mask (b&w / vice versa).
Static text works whilst under a mask, but dynamic text doesn't!
Are there any solutions or little tricks to get it to work under the mask?
02-21-2003, 03:35 PM
first thing that comes to me mind...dunno if it will work
put the dynamic text in a movieclip and mask the movieclip?
02-21-2003, 06:41 PM
embed the font of your dynamic textfield by clicking on the "embed fonts" buttons in the text options
01-14-2006, 12:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2015, Jelsoft Enterprises Ltd.