title: How to unload a ByteArray using Actionscript 3?
body: <p>How do I forcefully unload a <code>ByteArray</code> from memory using ActionScript 3?</p>
  
  <p>I have tried the following:</p>
  
  <pre><code>// First non-working solution
  byteArray.length = 0;
  byteArray = new ByteArray();
  
  // Second non-working solution
  for ( var i:int=0; i &lt; byteArray.length; i++ ) {
      byteArray[i] = null;
  }
  </code></pre>