[flexcoders] Combobox - How to display 'Click to Select...'

2008-08-01 Thread cox.blair
I have a dynamically populated combobox that I would like to provide
an initial label instead of the first item in the array. It would be
impossible to create an item in the array to show, it would need to
part of the combobox control.

So on initial load of the application, the combobox would display
something like 'Click to Select...'.

Any thoughts?

Thanks,



Re: [flexcoders] Combobox - How to display 'Click to Select...'

2008-08-01 Thread Blair Cox
For the other newbies...

Use the Prompt property.

-- 
Blair 




From: cox.blair [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
Date: Fri, 01 Aug 2008 13:39:08 -
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Combobox - How to display 'Click to Select...'

 
 

I have a dynamically populated combobox that I would like to provide
an initial label instead of the first item in the array. It would be
impossible to create an item in the array to show, it would need to
part of the combobox control.

So on initial load of the application, the combobox would display
something like 'Click to Select...'.

Any thoughts?

Thanks,

 


Re: [flexcoders] Combobox - How to display 'Click to Select...'

2008-08-01 Thread Blair Cox
Cheers Ryan! Found the answer only moments before your email came in.

-- 
Blair 




From: Ryan Gravener [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
Date: Fri, 1 Aug 2008 10:10:49 -0400
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Combobox - How to display 'Click to Select...'

 
 

Set the prompt property.

On Fri, Aug 1, 2008 at 9:39 AM, cox.blair [EMAIL PROTECTED] wrote:
  



Re: [flexcoders] Combobox - How to display 'Click to Select...'

2008-08-01 Thread Ryan Gravener
Set the prompt property.

On Fri, Aug 1, 2008 at 9:39 AM, cox.blair [EMAIL PROTECTED] wrote:

   I have a dynamically populated combobox that I would like to provide
 an initial label instead of the first item in the array. It would be
 impossible to create an item in the array to show, it would need to
 part of the combobox control.

 So on initial load of the application, the combobox would display
 something like 'Click to Select...'.

 Any thoughts?

 Thanks,

  




-- 
Ryan Gravener
http://twitter.com/ryangravener