Copying here code that i've daone in getting a country combo box.It 
is given as array collections..Chk if it can solve ur problem







public function loadCountryCombo():void
                        {
                                if(flag1)
                                {
                                    var object:Object;          
                        
                                        if(model.userInfo.countryId!
= null)
                                        {               
                                        
                                        cntryId = new Array();
                                        cntryName = new Array();
                                        cntryId = 
model.userInfo.countryId;
                                        cntryName = 
model.userInfo.countryName;
                                        for(var i:int = 0; i< cntryId
[0].length;i++)
                                        {
                                                object = new Object
();
                                                object.data = cntryId
[0][i];
                                                object.label = 
cntryName[0][i];
                                                countrydata.addItem
(object);
                                        
                                        }
                                        flag1=false;
                                        }
                                        
                                        }
                        }

Reply via email to