
That is what is held in the dta variable.
public function newXML(e:DataEvent){ var getData = e.data; var pos = getData.search(“_”); getData = getData.substring(pos); dta = getData.split(/:/); var obj; if(dta[1] == “X”){ obj = new X() playBoard.dta[0].addChild(obj); }else{ obj = new O(); playBoard.dta[0].addChild(obj); } }
So, the problem that I am having is I am getting this message:
TypeError: Error #1010: A term is undefined and has no properties.
at MethodInfo-6()
I know that the problem is with these two lines:
playBoard.dta[0].addChild(obj);
I believe that it has no idea what playBoard."_2".addChild(obj); means
So… Is there anyway to use a string to relate to an existing object, and place a new object inside of it?
Please, please, please let me know if you need more information or don’t understand something.
Thanks for the help!
If you would like to make a comment, please fill out the form below.
Recent Comments