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