All pastes #908857 Raw Edit

Someone

public text v1 · immutable
·published 2008-02-18 19:49 UTC
rendered paste body
Ok I have this code 

xmlanswer=getXML.childNodes[0].childNodes[6].firstChild.nodeValue; //The value in the database is INT
rightopt="txtOpt" + xmlanswer.toString(); //txtOpt1,2,3 are names of dynamic text boxes
rightans=this[rightopt].text;  //rightans is undefined

wrongmc['answer'].text=rightans //This isn't working


wrongmc is a MC on the same frame within which there is a dynamic text 'answer'

I've also tried setting the var property to "_root.rightans"  // Still no luck, getting undefined