0 Replies Latest reply on Mar 14, 2008 12:23 AM by Pratap Reddy

    Images inside ComboBox....

    Pratap Reddy
      HI..
      am trying to insert images inside combobox..
      so that i can select images from that..
      I passed the following Array as dataprovider to combobox..

      public var imagePath: Array = [ {path:"assets/images/inputtext.swf"}, {path:"assets/images/textarea.swf"}, {path:"assets/images/combo.swf"}, {path:"assets/images/chkbox.swf"}, {path:"assets/images/date.swf"}];

      var cmbType:ComboBox= new ComboBox();
      cmbType.dataProvider=imagePath;
      cmbType.labelField='path';
      cmbType.itemRenderer=new ClassFactory(mx.controls.Image);

      I can see the images inside the combo box ... But when i select a image its show its path on top...
      any idea how to see selected image on top??
      How to see image on top of ComboBox..

      Thanx in Advance
      Pratap