I have a load of objects with arrays in them.
var tabData0: Object = new Object();
tabData0.tab1 = new Object();
tabData0.tab1.names = new Array();
tabData0.tab1.names.push("<b>111.</b> Het systeem aan- of uitzetten", "<b>2.</b> De temperatuur verhogen of verlagen");
var tabData1: Object = new Object();
tabData1.tab1 = new Object();
tabData1.tab1.names = new Array();
tabData1.tab1.names.push("<b>222.</b> Het systeem aan- of uitzetten 2", "<b>23.</b> De temperatuur verhogen of verlagen");
The idea is to pick from one of those objects and insert the contents into a texfield.
I retreive a var from 3 levels up and store it, then combine it with tabData.
var moveRemoteHolder = MovieClip(parent.parent.parent).remoteHolder;
var all = "tabData"+moveRemoteHolder;
trace ("all = " +all); // returns: all = tabData0
I want to combine this output with a few more to refer to my object / array.
The remoteHolder contains the value I need to know which object (tabData0, tabData1, etc) to retrieve the info from.
tabHolder['btn' + i].titleHolder.titleField.htmlText = all['tab' + tab].names[(i-1)];
But get this:
ReferenceError: Error #1069: Property tab1 not found on String and there is no default value.
UPDATED based on comments on this answer from OP. See revised code snippet.
I can see why the results are confusing. You are tracing out “tabData0” because:
http://www.youtube.com/watch?feature=player_embedded&v=kwRvoeGsuY8
I recommend this instead:
HTH!