Hi
I'm pretty new to this xml stuff and LoaderMax although I've been using tween lite for years and love it!
I'm trying to load in an xml file and to use the various data within it to populate a series of panels with images and text. I want to create 2 'main' panels, one with 7 and one with 8 'sub' panels within them.
I've loaded my xml and extracted various tags and placed them in XMLLists. the code below does this for me. I've set up variable outside the function to hold the xml data.
function xmlLoaded(e:LoaderEvent):void
{
trace("Loaded");
mainMenuImages = xml.content.mainMenu.panel.ImageLoader;
mainMenuText = xml.content.mainMenu.panel.showText.@textToShow;
trace(mainMenuImages);
trace(mainMenuText);
trace("\n main menu images.length() = " + mainMenuImages.length());
wh1Images = xml.content.wh1.panel.@ImageLoader;
wh1Text = xml.content.wh1.panel.showText.@textToShow;
trace(wh1Images);
trace(wh1Text);
trace("\n whats hot 1 images.length() = " + wh1Images.length());
//showImage(mainMenuContainer, mainMenuImages, index);
showImage();
}
my trace (for MainMenuImages) give me:
How can I then use this information to load (ImageLoader?) all of the the images with their attributes and place them in a single container and display on stage?
I'd really appreciate some help as I'm going round in circles!!
Thank you.
Cas