Have you tried the prompt property in the Combo Box?



|---------+----------------------------->
|         |                             |
|         |  "yaagcur"                  |
|         |  <[EMAIL PROTECTED]>         |
|         |  Sent by:                   |
|         |  [email protected] |
|         |  07/07/2006 08:48 AM        |
|         |  Please respond to          |
|         |  flexcoders                 |
|         |                             |
|---------+----------------------------->
  
>-----------------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                                |
  |      To: [email protected]                                         
                                                |
  |      cc:                                                                    
                                                |
  |      Subject:  [flexcoders] arrayCollection.addItemAt How to?               
                                                |
  
>-----------------------------------------------------------------------------------------------------------------------------|




I return a recordset and create a new arraycollection just fine
but wish to add an extra row at the top . The following just produces an
[object, Object] result in the combo box I populate for the additional
entry

public function myFunction(event:ResultEvent):void {
trace ("results returned");
teams = new
ArrayCollection(mx.utils.ArrayUtil.toArray(event.result.source));
teams.addItemAt([{FRANCHNAME:'All Teams',FRANCHID:'All'}],0); //
FRANCHNAME and FRANCHID are the two properties in the object
teams.refresh();
}
I would also like the combobox to show the new All teams as default
in the combobox

cheers







---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---------------------------------------------------------------------------

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Attachment: pic18240.gif
Description: GIF image

Reply via email to