-
xml handling class
hi
i am writing a class to handle import rss feeds, but can't seem to progress from loading the xml. on creating the Rss_Test object, it outputs "rss loaded" but nothing else - i am guessing it is a scope thing. any ideas?
Code:
class Rss_Test {
var rss_items:Array;
var rss_item:Array = new Array();
var rss_xml:XML;
public function Rss_Test(xml_feel_url) {
rss_xml = new XML();
rss_xml.ignoreWhite = true;
rss_xml.onLoad = function(loaded:Boolean) {
if(loaded) {
trace("rss loaded");
parse_rss_xml();
}else {
trace("booch");
}
}
rss_xml.load(xml_feel_url);
}
private function parse_rss_xml() {
// this never gets executed
trace("executing: parse_rss_xml()");
// blah blah blah
}
}