PDA

View Full Version : ideas for interpreting loaded variables



flash4food
February 1st, 2004, 08:20 PM
hello everyone, i am making a flash quiz game that loads questions and answers from an external .txt file and i was wondering how can I interpret with as something like this (i use the split function to make an array from the file):

//pseudo txt file:
domestic animal?
canine

another one?
cat

//
instead of the usual:

//pseudo txt file:
domestic animal?:canine.another one?:cat

to make things more readable

claudio
February 1st, 2004, 10:53 PM
Why dont you try using XML instead?

flash4food
February 1st, 2004, 11:46 PM
i would, but i want to know if there is a way for this becuase i want to do it easily editable for nonprogramers or nonflash people