Can´t seem to add all the <name>gallery name </name> that I have in my XML.
I only end up adding the one with the last iteration of [l].
Obviously I´m doing something wrong, and I´m not that good with for loops, so I´m really hoping that someone with better knowledge than me can help me out with this!
function loadwork(event:Event):void
{
workList = xml.item.name;
workMenu.defaultTextFormat = myFormat;
workMenu.wordWrap = true;
workMenu.mouseEnabled = false;
for (var l:int=0; l < workList.length(); l++)
{
workMenu.x = 10;
workMenu.y = l * 30 + 240;
workMenu.text = workList[l];
}
addChild(workMenu);
}
That´s how far I´ve come using tutorials, going crazy now
Anyways, thanks in advance to any and all help in this matter!
Regards
/rundevo