Hi all!
Im trying to make a class that loads in some external data, and then creates some arrays in the class, which names and content are based on the data that are loaded.
What i have now, is something like like this:
class DataConn
{
(...)
xmlOutput.onLoad = function()
{
var tables:Array = this.firstChild.childNodes;
for(var i:Number=0;i<tabels.length;i++)
{
//how do i now create arrays in the root of the class?
classRoot(?)[tables*] = new Array()
}
}
(...)
]
I guess my problem is, that i dont know how the reference the “root” of the class.
What i want to be able to do with this class is this:
dcTest:DataConn = new DataConn();
trace(dcTest.theHopefullyCreatedArray[6])
Any help help on how to do this would be great :hangover:
Thanks…