funtion recentCommentsXML(loaded){ if(loaded){ commentbutton_btn.url = //commentbutton_btn is the instance name of the button this.firstChild.childNodes[0] .childNodes[5] .childNodes[1] .firstChild.nodeValue; //selects which node (url) to pick from the wordpress xml file author_txt.text = //picks and defines the author of the comment this.firstChild.childNodes[0] .childNodes[5] .childNodes[2] .firstChild.nodeValue; description_txt.text = //this is the getting of the comment itself this.firstChild.childNodes[0] .childNodes[5] .childNodes[2] .firstChild.nodeValue; }else{ trace("ERROR loading xml file."); } } xmlData = new XML(); xmlData.ignoreWhite = true; xmlData.onLoad = recentCommentsXML; xmlData.load("http://pixel-crunch.net/?feed=comments-rss2");