Desparate Help is needed within two days

I need help…

Now that I admitted that, I really need help…

I have a project due in a couple of days, and I need to know how to parse XML data in a class file. Basically, I need to know how class files work, in respect to variables, looping, etc. . Personally, I have never worked with Class files, and I don’t understand the difference between public and private functions, a little explanation, along with example code would be much appreciated.

In case I failed to explain that in english, this is essentially what I need to accomplish, except for in a class file…




myArray = [];


var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function (success) {

if (success) {
for (i=0; i<this.firstChild.childNodes.length; i++) {
myArray* = this.firstChild.childNodes*.attributes.name;

}
}
}
myXML.load("path2XMLfile");


obviosly that isn’t the exact actions that I will be using, but somthing like that. All I need is an explanation of how class files work etc.

ALSO… A much HUGER, BETTER alternative would be to be able to load in .as files, but I am pretty sure that Flash’s File I/O is limited, and does not have access to do such things. If it does, please let me know…

So for now, I would just like to know looping, variable assignment (arrays), as well as XML parsing in a class file. I would like to thank anyone in advance, because I may not be on until the first of march.

BTW This project is due on the third…