If possible, actionscript conversion

From Flash 8 down to MX. I really hope this can be done. It’s for a multimedia class project.
function parseWords():Void {
if (wordsLoader.firstChild.nodeName == “gamedata”) {
var rootNode:XMLNode = wordsLoader.firstChild;
for (i=0; i<rootNode.childNodes.length; i++) {
if (rootNode.childNodes*.nodeName == “word”) {
var currentWord:String = rootNode.childNodes*.firstChild.nodeValue.toString();
words.push(currentWord);
}
}
}
}

That is the code. Please, help me. I really hope I can.
If not, can someone lead me into the direction of a tutorial of hangman for Flash MX? Please!