Text returns undefined|undefined

i have the following code with 2 input text boxes called text1 and text2

i have 2 buttons called sendAnswer and getAnswer

i know the getAnswer will not be working yet, but i need to know why my textfile says undefined|undefined. Keeping in mind that this code is currently located on an external swf.

Any Ideas?

 
var myFile = mdm.Application.path+"myinfo1.txt";
 
var myString:String = _root.text1.text+"|"+_root.text2.text;
 
sendAnswer.onRelease = function() {
mdm.FileSystem.saveFile(myFile, myString)};
 
getAnswer.onRelease = function() {
myString = mdm.FileSystem.loadFile(myFile);}