Hi all,
 
I am working on Flex 2.0.I am faced with a problem.I need to display data from  the .XML file into the combo box.Earlier i used mx:Model  and an array collection to display data in combo box in flex 2 Beta 3 version and it was working fine.Now i have changed the same code to flex 2 final version and it is not working.The code i used is shown below.
 
*****************************************************************************************************
 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
 
 <mx:Model id="statesModel" source="states.xml"/>
        <mx:ArrayCollection id="StateAC" source="{statesModel.states.state}"/>
 <mx:ComboBox id="st" x="143" y="113" width="132" dataProvider="{StateAC}"/>
</mx:Application>
 
 
******************************************************************************************************
 
 
the states.xml file is as follows
 *****************************************************************************
<states>
   <state label="Alabama" data=""/>
    <state label="Alaska" data=""/>
    <state label="Arizona" data=""/>
    <state label="Arkansas" data=""/>
    <state label="California" data=""/>
    <state label="Colorado" data=""/>
    <state label="Connecticut" data=""/>
    <state label="Delaware" data=""/>
    <state label="Florida" data=""/>
    <state label="Georgia" data=""/>
<states>
*******************************************************************************************************
 
 
Your help in this regards will be highly appreciated.
 
Thanks,
Vinod M Jacob
 

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com __._,_.___

--
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




__,_._,___

Reply via email to