How to unload a ByteArray using ActionScript 3? From memory
I tried:
// non-working solution no.1
byteArray.length = 0;
byteArray = new ByteArray();
// non-working solution no.2
for ( var i:int=0; i < byteArray.length; i++ )
{
byteArray[i] = null;
}