RE: [flexcoders] Problem with showing dynamic combobox
You probably meant to use prompt instead of labelField From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of timgerr Sent: Thursday, July 17, 2008 1:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem with showing dynamic combobox Hello all, I an running into a problem, when I create a Actionscript ComboBox like this: [Bindable] public var respArray: Array = [ {label:},{label:Yes},{label:No},{label:N/A},{label:No Responce}]; var cb1:ComboBox = new ComboBox(); cb1.id = 'cb1me'; cb1.dataProvider = respArray; addChild(cb1); All is displayed correctly But when I add the labelField like this var cb1:ComboBox = new ComboBox(); cb1.id = 'cb1me'; cb1.dataProvider = respArray; cb1.labelField = 'Please Select'; addChild(cb1); When this is displayed the ComboBox displays: [Object Object] [Object Object] [Object Object] [Object Object] Why is the labelField messing up my array? Thanks, timgerr
Re: [flexcoders] Problem with showing dynamic combobox
try the labelField as label and put the please select as prompt. Cheers, On Thu, Jul 17, 2008 at 5:07 PM, timgerr [EMAIL PROTECTED] wrote: Hello all, I an running into a problem, when I create a Actionscript ComboBox like this: [Bindable] public var respArray: Array = [ {label:},{label:Yes},{label:No},{label:N/A},{label:No Responce}]; var cb1:ComboBox = new ComboBox(); cb1.id = 'cb1me'; cb1.dataProvider = respArray; addChild(cb1); All is displayed correctly But when I add the labelField like this var cb1:ComboBox = new ComboBox(); cb1.id = 'cb1me'; cb1.dataProvider = respArray; cb1.labelField = 'Please Select'; addChild(cb1); When this is displayed the ComboBox displays: [Object Object] [Object Object] [Object Object] [Object Object] Why is the labelField messing up my array? Thanks, timgerr -- Guilherme Blanco - Web Developer CBC - Certified Bindows Consultant Cell Phone: +55 (16) 9166-6902 MSN: [EMAIL PROTECTED] URL: http://blog.bisna.com Rio de Janeiro - RJ/Brazil