PDA

View Full Version : info from text file


cinciem
08-08-2001, 05:37 PM
Please help.

I am trying to create an e-card that grabs info from 2 text files.
I want to draw from text file 1 and have the first card grab the first line on the list and insert that info into to its first text box

Then grab the first line from a second text file for the second text box .

The next movie would grad line 2 from the files and the pattern would continue.

Advice, reading material, tutorials, any and all would be wonderful.

thanks very much :)

Jesse
08-08-2001, 08:35 PM
Read the e-card tutorial here if you haven't seen it already. Other than that I would suggest that you make your text files have variables like:
info1=blah blah blah&info2=bleh bleh bleh
then you can use only _root["info"+ID] where ID is the number of the movie that is calling the text file. But note that you can't just load some content from a text file, you have to load it all. So load it all then set:
textField = _root["info"+ID];