Loading Full Image & Text from Thumbnail (Array)

Hey, little bit before I post the code.

Anyway, I’m moving from AS2 to AS3 and always wanted to make an XML (or in this case RSS) feeder much like the one seen on websites like IGN.com

Anyway, I’m sure this isn’t the best way going about it but its part of my slow, self-learning process. I’ve basically done it before on AS2 but as you know, much is different and really even the same principles are no longer useful here from my old code.

Anyway, my thumbnails load great and the way I have it set up, when the thumbnail is clicked (with p for the number) it will only load the LAST image and title etc…however, when I use * it comes back undefined.

Basically, I’m sure its easy but I’ve looked at it for so long now and gone about this thing 3 different ways before ending up at this point, that I am probably missing it. I just want when I click the thumbnail, the correct (either using i or p, I don’t care) image, title and link (when I add it in) will load.

Eventually I’ll make the thumbnails scroll sideways, one thumbnail at a time and will need help on making that loop or stop once I get there, but right now I need to get this up so I can finish the rest of the site.

I’m really starting to love AS3 but still need to get a handle on creating event handlers and the new for loops etc.

var rssLoader:URLLoader = new URLLoader();
var rssURL:URLRequest = new URLRequest("http://awf.brandon-jackson.com/news/rss.php?number=5");
rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
rssLoader.load(rssURL);

var rssXML:XML = new XML();
rssXML.ignoreWhitespace = true;


function rssLoaded(evt:Event): void {
    rssXML = XML(rssLoader.data);

    titleText.htmlText = rssXML.channel.item.title*;
    var imageLoader:Loader = new Loader();
imageLoader.load(new URLRequest(rssXML.channel.item.graphic*));
mainPicture.addChild(imageLoader);
    

    for (var i:uint=0; i<3; i++) {
        var thumbMC:MovieClip = new MovieClip();
        var thumbLoader:Loader = new Loader();
thumbMC.graphics.beginFill(0)
thumbMC.graphics.drawRect(0, 0, 100, 100);
thumbMC.graphics.endFill();
thumbMC.x = i * 100;
thumbMC.y = 2.5;
//thumbMC.addEventListener(MouseEvent.CLICK, clickHandler);
thumbLoader.load(new URLRequest(rssXML.channel.item.thumbnail*));
thumbLoader.x += i * (100 +5);
thumbLoader.y = 2.5;
thumbScroller.addChild(thumbLoader);
thumbScroller.buttonMode = true;
trace (i);



/*thumbScroller.addChild(thumbMC);
thumbMC.buttonMode = true;
thumbLoader.load(new URLRequest(rssXML.channel.item.thumbnail*));*/
}
var p:uint = i;
thumbScroller.addEventListener(MouseEvent.CLICK, thumbClick);
function thumbClick(event:MouseEvent):void {
    //imageLoader.load(new URLRequest(rssXML.channel.item.graphic[p]));
    //titleText.htmlText = rssXML.channel.item.title*;
    trace(rssXML.channel.item.graphic[p]);
}
}