Is there a way to create a list of text links, one for each category of project in my XML list. Here is a sample of my XML:
<projects>
<project name="Make It Rock Poster" description="Poster for snowboarding trip up to Lutsen, MN" category="Logo">
<image>one.jpg</image>
<image>three.jpg</image>
</project>
<project name="Bema Seat Poster" description="Poster for Bema Seat presentation at St. Cloud for Campus Crusade for Christ" category="Web">
<image>two.jpg</image>
</project>
<project name="Missian Wedding Invitation" description="Wedding invitations for Jordan and Char" category="Print">
<image>oneF.png</image>
</project>
</projects>
I’d like to create a list of links, taking the categories from the XML like this:
Logo
Print
Web
And then when you click on the link, the specific projects in that category would appear.
I have this so far:
private function addThumb(evt:TimerEvent):void
{
var a:int = evt.target.currentCount-1;
var nextThumb:Thumbnail = new Thumbnail();
nextThumb.displayTxt = xmlProjects..project[a].@name;
nextThumb.fullImage = xmlProjects..project[a].image;
nextThumb.descTxt = xmlProjects..project[a].@description;
nextThumb.x = -150;
nextThumb.y = 45+(a*nextThumb.height)+a*3;
addChildAt(nextThumb,2);
nextThumb.addEventListener("loadProject", doLoadProject);
TweenLite.to(nextThumb, 1, {x:16, ease:Quadratic.easeInOut});
}