title: How can I remove / clear items out of a list control in Flex?
body: <p>I have a list control in Flex that has been data bound to an e4x xml object from an HTTPService. </p>
  
  <p>I would now like to have a button that clears the list, how can I do this?</p>
  
  <p>I have tried:</p>
  
  <pre>
  <code>
  list.dataProvider = null;
  </code>
  </pre>
  
  <p>which does not seem to work, I have also tried:</p>
  
  <pre>
  <code>
  list.dataProvider = {};
  </code>
  </pre>
  
  <p>which clears the items but leaves [object,object] as the first item in the list...</p>