Having trouble following what's being said through Google, so I'll ask directly with more simplified examples.
I have vars in the class variables:
var obj1:MovieClip = new MovieClip();
var selectedObj:MovieClip;
I also have a string elsewhere:
var word:String = "obj1";
When I try to convert the string to an object instance name with this method:
selectedObj = this[word];
I get the following error:
ReferenceError: Error #1069: Property obj1 not found on MainClass and there is no default value.
What's the deal, can a class not recognize a converted string as an instance name this way? It works if I just assign the selectedObj as obj1, but I want to be able to cut down on the hard coding.
Any advice is welcome. I'm very tired right now.