[flexcoders] Re: Generic Function To Set ComboBox Item

2010-05-21 Thread David
: [flexcoders] Re: Generic Function To Set ComboBox Item Don't you access properties in an XMLListCollection differently than in an ArrayCollection? So rather than... var item:String = dataProv.getItemAt(i).dpID; it would be var item:String = dataProv.getItemAt(i)@dpid

[flexcoders] Re: Generic Function To Set ComboBox Item

2010-05-20 Thread bhaq1972
. From: gareth_arch gareth_a...@... To: flexcoders@yahoogroups.com Sent: Wed, 19 May, 2010 10:34:35 Subject: [flexcoders] Re: Generic Function To Set ComboBox Item Don't you access properties in an XMLListCollection differently than in an ArrayCollection

[flexcoders] Re: Generic Function To Set ComboBox Item

2010-05-20 Thread bhaq1972
, 19 May, 2010 10:34:35 Subject: [flexcoders] Re: Generic Function To Set ComboBox Item Don't you access properties in an XMLListCollection differently than in an ArrayCollection? So rather than... var item:String = dataProv.getItemAt(i).dpID; it would be var item:String

[flexcoders] Re: Generic Function To Set ComboBox Item

2010-05-19 Thread angelo_anolin
Any take on this? Thanks. --- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@... wrote: Hi FlexCoders, I would want to create a generic function to be able to set a ComboBox item. The function I have goes like this: private function selectComboItem(itemID:String,

[flexcoders] Re: Generic Function To Set ComboBox Item

2010-05-19 Thread gareth_arch
Don't you access properties in an XMLListCollection differently than in an ArrayCollection? So rather than... var item:String = dataProv.getItemAt(i).dpID; it would be var item:String = dataProv.getItemAt(i)@dpid; Try doing a debug of your code and see what is being returned also. --- In

Re: [flexcoders] Re: Generic Function To Set ComboBox Item

2010-05-19 Thread Angelo Anolin
= xmlLC.getItemAt(i).collectionID; ?? Thanks. From: gareth_arch gareth_a...@yahoo.com To: flexcoders@yahoogroups.com Sent: Wed, 19 May, 2010 10:34:35 Subject: [flexcoders] Re: Generic Function To Set ComboBox Item Don't you access properties