I appreciate Ktu's efforts here; however, Merrill is right. I've written this:
var j:String = "xml.menu.item[whichItems[0]]";
var k:String = new String();
var l:int = level;
while (l--)
{
k += ".item[whichItems[" + String(l) + "]]";
}
totalItems = (j + k);
however this won't work because it's a string. If I were doing this in Python,
I'd write something like:
totalItems = exec(j + k)
and it would execute the string. Does as3 have something comparable?
TIA,
John
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders