hi, to combine two arrays use 'concat' method like arr.concat(lash)
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection public var arr:Array=new Array ("zabhi","lash","tux","linux","ubuntu","aflex"); public var lash:Array=new Array(12,4,122,356); [Bindable] public var dp:ArrayCollection=new ArrayCollection(arr.concat(lash)) ]]> </mx:Script> <mx:Panel id="panel_1" title="change size" width="100%" height="50%"> <mx:ComboBox name="linux" x="80" y="780" id="combo" dataProvider="{dp}"/> </mx:Panel> </mx:Application> On Nov 13, 7:51 pm, abhilashm86 <[email protected]> wrote: > i created 2 arrays, i declared them in <script> tag, > now i want to include both of them into single combobox , how do i do > it? > > <mx:Script> > <![CDATA[ > import mx.collections.ArrayCollection; > > public var arr:Array=new Array > ("zabhi","lash","tux","linux","ubuntu","aflex"); > > public var lash:Array=new Array[12,4,122,356 ]; > > ]]> > </mx:Script> > > <mx:Panel id="panel_1" title="change size" width="100%" height="50%"> > > <mx:ComboBox name="linux" x="80" y="780" id="combo" > > <mx:ArrayCollection source="{arr + lash }" > > </mx:ArrayCollection> > </mx:ComboBox> -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=.

