3 Replies Latest reply on Jan 5, 2011 3:38 PM by rehoover51

    clearing dropdown menus

    DrClohite

      // clear contents of add form

      txtFirstName.text='';

      -done!

       

       

      // reset the DropDownList item selectors -  cat

      category.text='';

      -it says category undefined.

       

      how do I clear/reset an Array/Object?

       

      here's the code of what I want to clear:

       

      <mx:FormItem>

      <s:DropDownList id="cat" change="updateCategory()" prompt="Select Cat" width="20">

      <s:ArrayList>

      <fx:Object category="A" label="A" />

      <fx:Object category="B" label="B" />

      <fx:Object category="C" label="C" />

      <fx:Object category="D" label="D" />

      <fx:Object category="E" label="E" />

      </s:ArrayList>

      </s:DropDownList>

      </mx:FormItem>