0 Replies Latest reply on Jul 21, 2010 7:27 AM by Stewartg33k

    comboBox control issue

    Stewartg33k

      Hi all,

           I am having an issue with combo boxes showing the data in the dropdown list.  It is almost like the text is white on a white background.  However, that is not the case. (changed the backgroud color and still no visable text).  You can make a blind selection and the data shows up on close of the combobox,  so I know the data is getting there.  I am just not able to view it.

       

      I am using the latest SDK 4.1 and Flash Builder 4.0.1  Code is below.

       

      Within any Mxml, I can call the following since it is always the same data.

       

      <mx:Label text="Department:" x="200" y="160"/>
      <cntrl:comboDepartment id="departmentCombo" prompt="Any" cornerRadius="0"  width="160" x="200" y="185"/>

       

       

      Here is the control code that is being called.

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:ComboBox xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="creationCompleteHandler()"
          labelField="Description" cornerRadius="0" rowCount="15" width="160">

      <mx:Script>
        <![CDATA[
         import mx.collections.ArrayCollection;
         import mx.rpc.events.ResultEvent;
         import mx.rpc.events.FaultEvent;
        
         // Clear the text from the ComboBox.


         public function selectedDepartmentCombo():void {
          this.selectedIndex = 0;
         }
           
         // This calls the Remote Object method.


         private function creationCompleteHandler():void {
          cfService.getDepartments();
         }

         // This allows the method called by the RemoteObject to specify
         // the dataProvider for the comboBox (departmentsCombo) and sets it
         // to the results sent back from the ColdFusion server as
         // an ArrayCollection.


         public function getDepartmentsResult(event:ResultEvent):void {
          this.dataProvider = event.result as ArrayCollection;
          var defaultDepartmentOption:String = "Any";
           this.dataProvider.addItemAt(defaultDepartmentOption, 0);

         }
           
        ]]>
      </mx:Script>


      <mx:RemoteObject id="cfService"
        destination="ColdFusion"
        source="flex.cfc.DictionaryDepartment"
        showBusyCursor="true">
        <mx:method name="getDepartments" result="getDepartmentsResult(event)"
         fault="mx.controls.Alert.show(event.fault.faultString)"/>
      </mx:RemoteObject>

      </mx:ComboBox>

       

      There are no CSS files being used at this point.  I have tried just about everything I can think of.  Any suggestions?  Also, this was working just fine in the previous SDK 4.0 and FlashBuilder 4.0.  If I go try to go back to that build I get some fiber error that relates to running a 4.0.1 project in 4.0.

       

      I am stuck,  could this be a bug or am I just overlooking something simple.

       

      -Stewart