Click to See Complete Forum and Search --> : calling text from a text file into a swish or flash project window


ducatigirl
11-17-2003, 04:40 AM
Hi, I dont know what it's called that I'm trying to do so cant look it up.I have made a web page in swish, first go at it, i have a text file with the contents that go on each file
divided with &=page1
&=page2
etc...
How do I get these peices of text to load in my window?( I have the window fading in)
Is it javascript or f5 command or something?
and what script do I write to call it into the page? (import C://aweb/text/text1.txt........&=page2) or something similar?
Or Do I call it from a URL?
I will need the exact script code or function or whatever .thanks heaps
Thank you for helping:confused:

LittleRed
11-17-2003, 10:13 AM
importing text files into something else is usually refered to being 'dynamic'.

I'm not sure what Swish is, but if you've got Flash, you can do it using that.
You can get Flash to read the contents of a text file, by selecting a text box and in the Text Options changing 'static text' to 'dynamic text'. You need to set a variable name, in the Variable box, and then your text files need to begin with that name and an equals sign.
(eg. if your variable is dynamictext, then your text file starts
dynamictext=your content follows here)
if you make this text box into a movieclip, then you can use this actionscript to read the text file in:
loadVariables ("textfilename.txt", _root.textbox);
where _root.textbox is the movieclip name of the text box.

does this help? doesn't use any JavaScript though...did you need a non-Flash solution?