easy method for altering questions in a .txt file
I'm looking for an easy method to alter the questions and answers in a .txt file (attached), which realte to an .swf. Would any of you kind people know a way of doing this?
Thank you in advance.
Are you asking for something other than just editing it in notepad?
Editing in notepad just seems time consuming and clumsy. I wondered if there was a way of creating 'input question, input multiple choice answers' and then have the resulting .txt file ?
Yes. What version of flash and actionscript are you using?
Unfortunately my system has crashed, so nothing at the moment. have to rebuild my P.C - replying to this at work. :-(
Would something in Flash CS5, actionscript 3 be okay?
It would, if you are still there!
can anyone else help, please?
Here is a very basic AS3 way of doing it for you,
// *** Save part
FileRef = new FileReference();
// *** Import part;
var TextLoader:URLLoader = new URLLoader();
TextToSave.text = TextLoader.data;
Two movieclips/buttons - Names = LoadButton/SaveButton
One Textfield - Name = TextToSave
and one external text file called MySavedText.txt if you are going to import first.
Click Here to Expand Forum to Full Width
Poll by Flashkit.com