ok i am using as2 and zinc 3.0
Can anyone tell me why these codes are different?
I have 2 textboxes and a button all on the same frame on the same layer.
called sendAnswer, box1.text and box2.text.
This code doesnt work. it saves the txt file as var1=&var2=
var myFile = mdm.Application.path+"text2.txt";
var var1 = box1.text
var var2 = box2.text
var myString:String = "var1="+var1+"&var2="+var2;
sendAnswer.onRelease = function() {
mdm.FileSystem.saveFile(myFile, myString)};
but this code works.
var myFile = mdm.Application.path+"text2working.txt";
sendAnswer.onRelease = function() {
mdm.FileSystem.saveFile(myFile, box1.text+"|"+box2.text)};
What am i doing wrong with the string?
Also if someone could tell me how to load it back into the same textboxes that would help as well.