Hi

I have an xml file eg:

<?xml version="1.0" encoding="utf-8"?>
<activity title="Classification">
<categories>
<category name="Category 1 updated" />
<category name="Category 2" />
</categories>
</activity>

I load xml via a httpservice and place in a model:
<mx:HTTPService id="srv" url="" useProxy="false"/>
<mx:Model id="activityModel">{srv.lastResult.activity}</mx:Model>

Now I'd like to use Actionscript to get the 1st category eg
cat1.title = activityModel.categories.category[1].name;

This gives an invalid index error.

Any ideas?

Thanks






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to