I've tried every example I could find, but nothing really worked. What I'm looking for the to actionscript code (without using classes - i'd like to do all the code in the section of the mxml file) to load in an XML file that is stored in the same location as the swf file.
My XML is set up like the following:
<?xml version="1.0" encoding="utf-8"?>
<projects>
<project>
<projName>project1</projName>
<startDate>5/5/2011</startDate>
<positions>
<position>
<startOffset>1</startOffset>
<numDays>4</numDays>
<role>1D</role>
<student>Project 1 - Name 1</student>
</position>
... repeat for however many position pieces there are
</positions>
</project>
... repeat for however many project pieces there are
</projects>
I am looking to read this in as a simple XML (projectsXML for the variable name) so that i can do something like:
<mx:Repeater id="singleProject" dataProvider="{projectsXML.projects.project}">
<mx:Text id="projectName" text="{singleProject.currentItem.projName}" />
</mx:Repeater>
What I'll actually be doing is calling components within the repeater and passing along the variables, but if i can achieve the above, I'm pretty sure I can figure out the rest.
If anybody can help me out here, it'd be greatly appreciated... so i can stop pounding my head against the wall :(
Thanks in advance, Alex