Kyle,

I haven't looked at your code too  much in depth but this is how you can 
make use your XML object as a dataProvider.  First make it bindable

[Bindable]
public var  myXML:XML = new XML();

second, you can access the value of your data like so:

Alert.show(myXML.male.attribute("percent"));

You should also read up on XPath if you are using XML objects a lot.
This is what I do, however, I am new to Flex so be forewarned:).  If I 
am wrong anywhere someone please correct me.

Ethan



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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to