surfjoe
asked on
filtering XML data in flash using a drop down menu.
I have created a flash movie to display data based on the following:
<surfforecast spot="10" name="Cromer" link="http://msw202.com/Cromer-Surf-Report/10/">
<today day="Today" swelldata="2FT@4SECS" windspeed="6MPH" winddir="NE" rating="0"/>
<tomorrow day="Tomorrow" swelldata="1FT@6SECS" windspeed="6MPH" winddir="NNW" rating="2"/>
<nextday day="FRIDAY" swelldata="3FT@4SECS" windspeed="20MPH" winddir="SSW" rating="3"/>
</surfforecast>
I am using actionscript to display the data in an SWF file which is all working fine.
I now need to find a way to filter the data based on the first line of the XML <surfforecast spot="10" name="Cromer" link="http://msw202.com/Cromer-Surf-Report/10/">
I would like to created a dropdown list menu from which the user can select a location (there could be more than 30 locations) and then have the relevent data displayed in my SWF movie.
I would also like to be able to remember a users choice for next time they visit the webpage.
Any advice as to the best way to do this is much appreciated.
Many Thanks
<surfforecast spot="10" name="Cromer" link="http://msw202.com/Cromer-Surf-Report/10/">
<today day="Today" swelldata="2FT@4SECS" windspeed="6MPH" winddir="NE" rating="0"/>
<tomorrow day="Tomorrow" swelldata="1FT@6SECS" windspeed="6MPH" winddir="NNW" rating="2"/>
<nextday day="FRIDAY" swelldata="3FT@4SECS" windspeed="20MPH" winddir="SSW" rating="3"/>
</surfforecast>
I am using actionscript to display the data in an SWF file which is all working fine.
I now need to find a way to filter the data based on the first line of the XML <surfforecast spot="10" name="Cromer" link="http://msw202.com/Cromer-Surf-Report/10/">
I would like to created a dropdown list menu from which the user can select a location (there could be more than 30 locations) and then have the relevent data displayed in my SWF movie.
I would also like to be able to remember a users choice for next time they visit the webpage.
Any advice as to the best way to do this is much appreciated.
Many Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.