2 Replies Latest reply on Sep 6, 2010 5:27 AM by daslicht

    How to set the prompt of a Spark Combobox programmatically

    daslicht Level 2

      Hi,

      here a Combobox wich use my cutom Skin to manaully set the prompt:

      <s:ComboBox id='artistNameCB' labelField="artistName"                          
                skinClass="view.music.skins.ArtistComboBoxSkin"
                                      />
      

       

      here is the reklevat part of the Skin:

       

      <!--- @copy spark.components.ComboBox#textInput -->
          <s:TextInput id="textInput"
                 text='select'
                       left="0" right="18" top="0" bottom="0" 
                       skinClass="spark.skins.spark.ComboBoxTextInputSkin"/>
      

       

      How do I set the displayed text of a combobox  programmatically ?