twister
Howdy
I could use a little help here. I'm jumping into XML really fast and I've been able to get XML data into flash with no problems. What I have is one XML file with 44 of my portfolio pieces information. Now what i'd like to do is be able to filter out all those pieces so when I click on websites, I only read in the web portfolio pieces.
Now I know i could separate them out into different files but some pieces could fall under 'web' and 'flash' and I don't want to be duplicating a bunch of XML child's or whatever they are.
What I did was created three category names and if it fit in the 'web' category, it would contain a 1 otherwise a 0. Now how do i filter my results? I can think it out in my head but not in my code.
My XML example:
<portfolio>
<piece id="0">
<name>test</name>
<url>http://www.test.com</url>
<shortdesc>test</shortdesc>
<desc></desc>
<image>none.jpg</image>
<web>1</web>
<flash>1</flash>
<media>0</media>
</piece>
</portfolio>
My Flash Code:
See Attachment
Now I know i could separate them out into different files but some pieces could fall under 'web' and 'flash' and I don't want to be duplicating a bunch of XML child's or whatever they are.
What I did was created three category names and if it fit in the 'web' category, it would contain a 1 otherwise a 0. Now how do i filter my results? I can think it out in my head but not in my code.
My XML example:
<portfolio>
<piece id="0">
<name>test</name>
<url>http://www.test.com</url>
<shortdesc>test</shortdesc>
<desc></desc>
<image>none.jpg</image>
<web>1</web>
<flash>1</flash>
<media>0</media>
</piece>
</portfolio>
My Flash Code:
See Attachment