title: Best way to remove all elements from an ActionScript Array?
body: <p>I'm writing an application in Flex / ActionScript and have a number of class member variables of type Array storing data.</p>
  
  <p>My question is: what's the "best" way to clear out an Array object?</p>
  
  <p>I noticed the ArrayCollection class has a function removeAll() which does this, but the basic Array class does not.  Some possibilities I've considered are:</p>
  
  <ul>
  <li>Iterating through the array, calling pop or shift on each element</li>
  <li>Setting the array length to 0</li>
  <li>Setting the member variable to a "new Array()" or "[]"</li>
  </ul>